Hi Lee, On 10/4/07, Lee Fyock <[EMAIL PROTECTED]> wrote: > > If I schedule 20 things for roughly the same time, do they all run > concurrently, or are they queued and run sequentially?
They are each triggered in their own thread, outside of the thread used by the scheduler. > I've been reading that ActiveRecord and the underlying database > connection isn't thread-safe, so if multiple scheduled actions hit the > database at the same time, that would probably be bad. Yes it can bite, be sure to have tests covering such situations. It's your task as a system designer to make sure your data structure is consistent when needed. Adding a bit of synchronization (Mutex or MonitorMixin) helps. The general use case for the scheduler doesn't do "queue and run sequentially". You could maybe build that queue yourself and let the scheduler just trigger the "flush" job on it. Just an idea. Best regards, -- John Mettraux -///- http://jmettraux.openwfe.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
