TransWikia.com

Cron - Scheduling a workflow to run every hour, except 2 hours between 12 AM and 2 AM

Stack Overflow Asked on November 4, 2021

I am using cron and I need to schedule my workflow, so that it runs every day hourly, just except 2 hours from 12 AM until 2 AM. Meaning it needs to run daily from 2 AM and kick off every hour, but just when the clock hits 12 AM it should’t run for 2 hours. And then starts back at 2 AM to run every hour.
Would appreciate a solution.

One Answer

This is a CRON job

0 0 2-23 ? * * *

Description: Job will start at second:00, at the minute:00, every hour between 02 am and 23 pm, of every day

I have found this website useful to create CRON job

Answered by Krishna on November 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP