Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can access the task schedules from Administration > Advanced > Tasks in the Readysell menu.

Cron Strings

With cron strings, you can specify firing-schedules such as "every Friday at noon", or "every weekday and 9:30 am", or even "every 5 minutes between 9:00 am and 10:00 am on every Monday, Wednesday and Friday".

Expressions

Expressions are used to configure the schedule of tasks. Expressions are strings that are actually made up of seven sub-expressions, that describe individual details of the schedule. These sub-expression are separated with white-space, and represent:

NameRequiredAllowed ValuesAllowed Special Characters

Seconds

Y

0-59

, - * /

Minutes

Y

0-59

, - * /

Hours

Y

0-23

, - * /

Day of month

Y

1-31

, - * ? / L W C

Month

Y

0-11 or JAN-DEC

, - * /

Day of week

Y

1-7 or SUN-SAT

, - * ? / L C #

Year

N

empty or 1970-2099

, - * /

An example of a complete cron-expression is the string "0 0 12 ? * WED" - which means "every Wednesday at 12:00 pm".

...

The '#' is used to specify "the nth" XXX weekday of the month. For example, the value of "6#3" or "FRI#3" in the day-of-week field means "the third Friday of the month".

Helpful Tool

crontab.guru is a useful tool that will help you create cron schedule expressions. If you are new to using cron expressions, we highly recommend you take a look at this tool.

Example Expressions

Here are a few more examples of expressions and their meanings.

An expression to create a trigger that simply fires every 5 minutes

Code Block
0 0/5 * * * ?

An expression to create a trigger that fires every 5 minutes, at 10 seconds after the minute (i.e. 10:00:10 am, 10:05:10 am, etc.)

Code Block
10 0/5 * * * ?

An expression to create a trigger that fires at 10:30, 11:30, 12:30, and 13:30, on every Wednesday and Friday

Code Block
0 30 10-13 ? * WED,FRI

An expression to create a trigger that fires every half hour between the hours of 8 am and 10 am on the 5th and 20th of every month. Note that the trigger will NOT fire at 10:00 am, just at 8:00, 8:30, 9:00 and 9:30 

Code Block
0 0/30 8-9 5,20 * ?

More Information

For more information, please refer to the Quartz.NET documentation.