gr8 scheduling m8.
Here's how to get started quickly with docker:
docker run --rm -p 8090:8090 -e SCHEDULE_M8_BIND_ADDR='0.0.0.0:8090' aghost7/schedule-m8
Schedules a job. The message body's structure is the following:
{
"method": "POST",
"body": "{}",
"timestamp": 1494183499406,
"url": "http://localhost:3000"
}
Where:
method
is the http method to send the callback to.body
is the body of the response.timestamp
is the unix epoch in milliseconds of the time the scheduler is to send to request back.url
is the address to send the request to.
Returns:
{
"method": "POST",
"body": "{}",
"timestamp": 1494183499406,
"url": "http://localhost:3000",
"id": "123-123-1234"
}
Schedule a cron job. The message's structure is the following:
{
"method": "POST",
"body": "{}"
"timestamp": 1494183499406,
"schedule": "@daily"
}
Where:
method
is the http method to send the callback to.body
is the body of the response.schedule
is a cron expression. For more information, see the cron crate.url
is the address to send the request to.
Delete a job. Returns a 204 on success.
Delete all jobs.