Stop job on particular time Every sunday or other sunday

Any ideas , How Can I stop job every sunday or every month sunday for certain time ? EX: Every other sunday 1 aM to 5 AM (IT needs for maintenance) . FYI : Job is executing every hour every day.

Do you mean stop it while it’s running, or prevent it from running?

Hi @PALKUMARI_PATEL

Try this-

  1. Check if the current day is Sunday.
  2. If the day is Sunday, check if it falls on the specific week you want to perform maintenance (e.g., every other Sunday).
  3. If it meets the criteria, check if the current time is between 1 AM and 5 AM.
  4. If the current time is within the specified range, add an activity to pause the execution of the workflow.
  5. Configure the pause activity to pause for the desired maintenance duration.

Thanks!!

@PALKUMARI_PATEL

Create 2 different schedule…one to run evry hour between mon to sat (so runs till 12)…

One more for running on sunday 5 to 11pm

This way it would not run again during that maintainance time…

If you are afraid that it might cross 1 on sunday…may be have some logic in bot to stop after 12:30 on a sunday or only for saturday evening create one more schedule with stop after option enabled

Cheers

This is good idea to create 2 schedules. Will try this. Thanks

1 Like