Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time based workflow problem
#1
Hello,

I create my first time based workflow to run every 15 minutes.
But in practice it run every hour!

My vtigercron.php schedule to run every 15 minutes, and it run every 15 minutes.
I know that beacuse my "Mail Converter" working fine every 15 minutes.
In: Cron Tasks  Scheduler: Cron jon workflow is set to 00:15

Attach screen shots

Thank you


Attached Files Thumbnail(s)
       
Reply
#2
probably not every hour, but every half hour is possible.
this works like this: when the workflow scheduler launches, every 15min, it looks to see what workflow tasks and scheduled workflows have passed and executes them. Now, imagine that the scheduled workflow is triggered and takes a minute or so to finish. The next time the workflow launcher runs, 15min have passed but for the scheduled workflow it has been only 14min, so it isn't executed and has to wait another 15min for the workflow launcher to run again, effectively being 30min more or less.
In short, you need to set the workflow launcher to a lower frequency than the least scheduled workflow frequency or you may have cases where they sync doubling the time.
Joe
TSolucio
Reply
#3
I change the OS cron to run to 5 min, but unable to cause the workflow to run every 15 min.
The minimum I sussed is abut 30 min.

It the a way to call from the OS (via cron or other) specific workflow task.
Reply
#4
share your scheduled tasks settings and the settings of the workflow, see if I can understand what is happening
Joe
TSolucio
Reply
#5
I see above that the workflow is set to 15min and the scheduler also, so they may sync and execute every 30min

set the OS cron to 4min and the workflow to 5min, leave the scheduler at 15min
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)