Schdule triggers on Work day

I have process that needs to run WORKDAY 1-5 not month starting with 1st to 5th, Is there any way we can do it with cron?

Hi

You need the trigger works for workday 1-5 excluding the 1st-5th day in the month ?

So for example consider Jan1st as sunday , Jan2nd as Monday, So Jan2nd will be 1st working day… Like that

Hope you got it?

Hi

How about these 5 cron expressions:
## 0 0 12 1W * ? *
Description: At 12:00 PM, on the first weekday of the month

## 0 0 12 2W * ? *
Description: At 12:00 PM, on the second weekday of the month

## 0 0 12 3W * ? *
Description: At 12:00 PM, on the third weekday of the month

## 0 0 12 4W * ? *
Description: At 12:00 PM, on the fourth weekday of the month

## 0 0 12 5W * ? *
Description: At 12:00 PM, on the fifth weekday of the month

You will need to create 5 separate triggers.

Not the most elegant solution but should meet your needs :crossed_fingers:

See this site to make your own cron expressions:

Cheers

Steve

I got it. Thank you

Maybe this site help you building your cron expression

It has Nearest weekday (Monday to Friday) to the 1st of the month

If you can’t build all your needs in a single expression you can add more than one trigger to achieve the result

Hi @Rahul_Srinivas

For ref

Wow! Thanks very much. No way to combine them? like I might from Workday 3 -workday7 and then word day 10 -15 like that. how can that be worked out?

Hello

I don’t think there is a way to combine them into one.

Depending on your needs maybe setup some logic in the bot to determine if it should run. You could use a excel file with dates or ranges it should run.