function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rafaelburirafaelburi 

CronTrigger states

Hi All.

 

Can anyone explain me the states of CronTrigger? The documentation only says the available states but it does not explain each of them.

 

WAITING
ACQUIRED
EXECUTING
COMPLETE
BLOCKED
ERROR
PAUSED
PAUSED_BLOCKED
DELETED

 

Thanks in advance.

amarcuteamarcute

Hi,

 

As per my understanding, here is the meaning of different states

 

WAITING       - Indicates that the Trigger is in the "waiting" state.
ACQUIRED  - 
EXECUTING - Indicates that the Trigger is currently executing & indicates "executing" state.
COMPLETE  -  Indicates that the Trigger is in the "complete" state.
BLOCKED     -  Indicates that the Trigger is in the "blocked" state.
ERROR          -  Indicates that the Trigger is in the "error" state.
PAUSED       -  Indicates that the Trigger is in the "paused" state. it can get back to normal executing
PAUSED_BLOCKED
DELETED     - Indicates that the Trigger is run completely & finished its intended job & indicates "deleted" state. in this state, it will not be counted against the limit of 25 schedulable triggers