PepperCron is a distributed cron job management system
- PATH:
/v1/jobs
- METHOD:
POST
- Content-Type:
application/json
- Request:
{
"name": "echo_job",
"type": 0,
"times": 0,
"schedule": "@every 1m",
"executor_type": 0,
"executor_params": ["sleep", "2"],
"executor_timeout": 1000000000,
"environment_variables": [],
"tag": "test",
"dependent_jobs": [],
"concurrency": 2
}
- PATH:
/v1/jobs/<job_name>
- METHOD:
DELETE
Run the Docker Compose config:
cd deploy
docker-compose up -d --build --scale peppercron=2
The above commands will create one etcd and 2 peppercron instances.
Check peppercron port mapping using docker-compose ps