Schedules

Schedule server requests to be sent to the server container at a specified date and time

Description

The Schedules add-on, allows you to send identical POST requests to your server side container or any kind of webhook or endpoint automatically on the chosen interval.


Implementation

To enable and configure this add-on, go to your container on sprtags.io > Add-ons > Schedule.


1. Choose an unique name


2. Specify an url where the request need to be send to


3. Define a schedule to have the request sent periodically


Click on 'Add new Schedule' to create your first schedule and enter the required name, webhook and message.
If you do not enter a message then the message will contain a default text 'Scheduled message from SprTags' wi.


Schedules screenshot


Then you need to specify a cron expression by selecting the time, day, month and/or weekday.
For example you want to send a schedule on each monday at 12:00 or every hour on weekdays in January.


Schedules screenshot Schedules screenshot

And then when you have it saved, it will be automatically added to our scheduler and you will start receiving your requests.


Schedules screenshot


Here are some examples of cron expressions
Expression Explanation
0 0 12 * * ? Fire at 12pm (noon) every day
0 15 10 ? * * Fire at 10:15am every day
0 15 10 * * ? * Fire at 10:15am every day
0 * 14 * * ? Fire every minute starting at 2pm and ending at 2:59pm, every day
0 0/5 14 * * ? Fire every 5 minutes starting at 2pm and ending at 2:55pm, every day
0 0/5 14,18 * * ? Fire every 5 minutes starting at 2pm and ending at 2:55pm, AND fire every 5 minutes starting at 6pm and ending at 6:55pm, every day
0 0-5 14 * * ? Fire every minute starting at 2pm and ending at 2:05pm, every day
0 10,44 14 ? 3 WED Fire at 2:10pm and at 2:44pm every Wednesday in the month of March.
0 15 10 ? * MON-FRI Fire at 10:15am every Monday, Tuesday, Wednesday, Thursday and Friday
0 15 10 15 * ? Fire at 10:15am on the 15th day of every month
0 0 12 1/5 * ? Fire at 12pm (noon) every 5 days every month, starting on the first day of the month.
0 11 11 11 11 ? Fire every November 11th at 11:11am.