Inside queue trigger, there is a toggle called Schedule ending of job execution. I want to create a queue trigger and I want to stop the process at 10.00 PM everyday. If I enable this toggle and set stop time, will it stop everyday at 10.00? and again when the queue trigger will start automatically?
hi, @mohamedalthaf Schedule ending of job execution” is a relative timeout, not a daily clock time, so it won’t stop exactly at 10:00 PM every day. To enforce a 10:00 PM cutoff, keep the Queue Trigger for starting, and add a separate Time Trigger at 10:00 PM that sends Stop (or Kill) to the running jobs for that process. The Queue Trigger will continue to start jobs whenever items arrive during allowed hours; stopping a job at 10 PM doesn’t disable the trigger or change future runs. Optionally, add a “curfew” check in the workflow to exit gracefully when time >= 22:00.
Thank you for the reply. I have one more doubt. If I schedule a time trigger to send stop signal @ 10.00. what happens after that? Like after the job is stopped, will it get triggered immediately since it is queue trigger or the queue will trigger next day @ 0.00
@mohamedalthaf If you stop the job at 10 PM with a time trigger, the queue trigger will just start a new job right away if there’s still work and a robot is free. It won’t automatically pause overnight. To avoid jobs restarting after 10 PM, you’ll either need to disable the queue trigger at night and re-enable it the next day, or add logic in your process to exit if it’s outside working hours.
Sure. My use case is like I will be getting input anytime throughout the day till 22:00 in queue. So using performer process, I have to process queue item that are getting added.But once the time reaches 22:00 I have to stop the performer bot and have to run another process and generate a day end report.
Even if the queue has new items, nothing should be processed after 22:00. Only on next day ( starting 0.00 only the bot should start to process the remaining items in queue).
Based on the link you shared, I understand that every 30 mins queue trigger will start and try to process with items if available and I am thinking to add time validation in perfomer code to stop the queue trigger from picking next item after 22:00.
My only doubt is will my queue trigger pick and process new items as usual from 0:00 if I implement time validation at performer code
@mohamedalthaf Yes, that will work. As long as your performer checks the time and only processes items between 00:00 and 22:00, the queue trigger will keep running jobs after midnight automatically. The bot will pick up and process any remaining items in the queue starting from 00:00 each day, just like you want.