what is the difference between queue and ready state in runscriptjob?

reeba1
Tera Contributor

Hello All,

I opened the workflow timer activity in scheduled job and changed the next action to after 5 minutes, The state changed from ready to queued. What does this mean? and what is the difference between ready, queued and running states?

ready.png

1 ACCEPTED SOLUTION

bernyalvarado
Mega Sage

If you see a job going from ready to queued most probably is because it already got executed and now it's back to queued.



Thanks,


Berny


View solution in original post

7 REPLIES 7

bernyalvarado
Mega Sage

Queued should mean that is in line waiting for its turn. Ready should mean that is just awaiting to be pulled past its triggered time and Running should represent the state where it has been picked for execution.



Thanks,


Berny


Hi Berny,



Can you elaborate about the running state? I am a bit confused. In the workflow executing activities, the state is 'running' . Can you tell me what this means? And when will it go to ready state?


ACTIVITY.png



Regards,


Reeba


Hi reeb, it means that the workflow is been executed by ServiceNow. I can see that the three activities that you have shared could represent some type of "waiting time" for a given condition to take place. If the condition already took place, it may be necessary to force an update so that the condition is reevaluated.



Thanks,


Berny


bernyalvarado
Mega Sage

If you see a job going from ready to queued most probably is because it already got executed and now it's back to queued.



Thanks,


Berny