peppercron

command module
v0.0.0-...-27e8298 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 6 Imported by: 0

README

PepperCron - Distributed job scheduling system

PepperCron is a distributed cron job management system

Documentation

Add Job
  • 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
}
Delete Job
  • PATH: /v1/jobs/<job_name>
  • METHOD: DELETE

Development Quick start

docker

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL