Support > Forums > OpenBots Server > Sequenced automations

Sequenced automations

Alfredo Carbajal

  • Reporter
  • Calender Icon December 06,2022 at 9:12 PM

Good day. I'm uploading 2 automations to the Cloud Server and one runs every day at a given time, how can I make for the second one to run after the first one is complete every day? I tryed creating a queue item once the first one finishes but the second one does not run when scheduled with Queue arrival as an option,

This forum has 65 topics, 191 replies, and was last updated 2 months ago by Ghouse Shaik

Nataly Alvarado...

  • Participant
  • Calender Icon December 07,2022 at 6:01 PM

Hi alfredo.carbajal.nips,

There are different ways you can stage two automations to run one after the other.

  1. As you mention, using a Queue Arrival schedule for your second automation. Create a queueitem towards the end of the first automation. Make sure the date range is enabled, and that the Max Jobs setting does not prevent you from creating more jobs (this limits how many jobs can be in Assigned or New state for the associated schedule at a time).

  2. Use the "Run Schedule Now" command to trigger an existing Server schedule . This is the equivalent of triggering the "Run Now" function for the associated schedule.

  3. Schedule the second job to run everyday at a given time after the first job. For example, if you know the automation usually lasts 10-30 minutes, you can schedule the second automation to run 5 minutes after. Jobs in Server are picked up in a sequential manner, so the second job will only start executing once the Agent is available (after the first job is completed)

Let me know if you have any questions, or if issue persists with queue arrival schedule.

You are not authorized to reply, please click here to login and add your reply to this topic.