package
0.0.0-20241010145802-783c4038e4d0
Repository: https://github.com/starton-io/go-dispatch.git
Documentation: pkg.go.dev
# README
stablejob
This is JUST an example to explain the usage of DCRON stable job. In this exmaple, we defined a type of job: execute a bash command . For run this example, you should install redis, docker and docker-compose first.
add jobs
- Start the redis
- Run the tools first, to store the job.
build and run
# in dcron srcRoot dir
# build image
docker build -f examples/stablejob/Dockerfile -t stable-job-example .
# run image
docker-compose -f examples/stablejob/stablejob-compose.yml up -d
# scale up
docker-compose -f examples/stablejob/stablejob-compose.yml scale stablejob=5
# get log
docker logs --details [containername]
# Variables
No description provided by the author