stablejob

command
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 9 Imported by: 0

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

  1. Start the redis
  2. 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]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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