I have a time-based workflow that should have fired by now. I can see the entry still sitting int the queue.
It's now 15 minutes past when it was scheduled to fire. Wondering why it hasn't fired yet?
I have a time-based workflow that should have fired by now. I can see the entry still sitting int the queue.
It's now 15 minutes past when it was scheduled to fire. Wondering why it hasn't fired yet?
The time based workflow processor only runs once every fifteen minutes, starting from the time the processor starts. For example, if the server comes up at three minutes past the hour, it will run at 3, 18, 33, and 48 after the hour.
while(true) { Thread.sleep(900000); processPendingItems(); }
(over-simplified, of course). There are other processes that follow this rule, too, like Escalation rules.
Time-dependent actions aren’t executed independently. They’re grouped into a single batch that starts executing within one hour after the first action enters the batch. Apex triggers that fire as a result of time-dependent actions may get executed in a single batch or independently. See official doc