Cron Expression not being accepted by Orchestrator

I am trying to create a Cron expression for a process to run every minute every day, between the hours of 8am and 6pm.

I have tried these:

  • 8-18 * * *
    0 * 8-18 ? * *

and neither are being accepted. The error message is: Invalid cron expression syntax (#1600)

Is there something I’m doing wrong?

Thanks!

Hello @PhiaConnolly13,

UiPath uses the Quartz Library for comprehending Cron Expressions.

Cron Expression for At second:00, every minute, every hour between 08 am and 18pm, of every day : 0 * 8-18 ? * * *

Kudos. Hope that helps :slight_smile:

Regards,
Nithin

3 Likes

Thank you very much. That has been accepted!

1 Like

Hey @Nithin_P

The schedule has not stopped at 18:00. Could you please help me understand why this is?

Thank you.

@PhiaConnolly13

Try below cron expression

0 0 8-18 ? * *

Mark as solution if this works for you

Thanks

0 * 8-17 ? * * *
and it will stop at 17:59, i dont think you can do better than that…

Hello @PhiaConnolly13,

This is what orchestrator converts the Cron to “Every minute, between 08:00 AM and 06:59 PM”, so there is no way the Trigger Creates any job after 06:59 PM.

That said this is what could have happened, let’s say your process execution time is 5min (From Start to End) one job started running at 06:50 PM, it takes 5 minutes to complete. But, by then 5 new jobs are created on the robot. So, by the execution ends there are 5 jobs in pending state on the robot. I would request you share the details of process execution time (minimum). We can suggest a better schedule based on that.

Kudos, Hope that helps :slight_smile:

Regards,
Nithin

1 Like

This worked. Thank you!!!

1 Like

That explains it - thank you :slight_smile:

I have another question - Is it possible to add a cron expression to a queue based trigger? Client wants one process to run between 18:00 and 8am - but it is triggered by a queue. Any ideas?
Thanks!

Hello @PhiaConnolly13,

The idea of queue based trigger is when an Item is added to Queue by a Dispatcher Process the Performer has to be automatically triggered. Hence there is feature as of now to set a time slot for process triggering. For your requirement I would recommend you schedule the Dispatcher Process that adds items to said queue between 18:00 and 08:00 hours, this way the performer is also triggered in that time span itself.

Kudos ! Hope that helps :slight_smile:

Regards,
Nithin

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.