Start timer: Avoid multiple process instances

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2013 02:49 AM
Hey,
I have to build a periodic process which is triggered every 5 seconds.
The problem is, that the process duration can take up to 20 seconds.
So, while one process instance is running, a new one is started by the timer start. That shouldn't happen since the tasks within the process are not allowed to be processed in parallel instances.
How can I achieve this?
Cheers
Malte
I have to build a periodic process which is triggered every 5 seconds.
The problem is, that the process duration can take up to 20 seconds.
So, while one process instance is running, a new one is started by the timer start. That shouldn't happen since the tasks within the process are not allowed to be processed in parallel instances.
How can I achieve this?
Cheers
Malte
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2013 09:47 AM
Maybe you can implement conditional logic after the timer start event to validate if there's still another process instance running.
Best regards,
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2013 05:13 AM
Yes, I thought of that, but it seems, that the engine works just like required out-of-the-box: While a process instance is running, new process instances are not created.
Example: Start timer is triggered every 30 seconds. Instance1 is running 3m15s While Instance1 is running, NO new instances is created by the start timer of the process. So, the engine fullfilles my requirements without any additional logic.
Cheers
Example: Start timer is triggered every 30 seconds. Instance1 is running 3m15s While Instance1 is running, NO new instances is created by the start timer of the process. So, the engine fullfilles my requirements without any additional logic.
Cheers

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2013 07:17 AM
Well, yes and no. There's a default lock timeout of 5 minutes in the engine and a new job will only be executed when the job has been finished or the lock timeout of 5 minutes passes. So if your instance can run for more then 5 minutes then you would still have an issue.
Best regards,
Best regards,
