Sign inSign up

jwater7/supervisor-scheduler

By jwater7

•Updated almost 4 years ago

Start and stop supervisord jobs on a schedule

Image
1

1.0K

jwater7/supervisor-scheduler repository overview

⁠supervisor-scheduler

Start and stop supervisord jobs on a schedule Optionally post-process the file after the duration

⁠Supported environment variables

Required:

Optional:

  • DURATION_SEC
    • Default: 0 (neither stop nor post process)
    • E.g. 10800 (3 hours)
  • "POST_PROCESS_PROJECT_PATH=undefined"
    • Default: undefined
    • E.g. '/post' (see post-process project requirements)
  • "DEBUG=supervisor-scheduler:*"
⁠Supported volumes
  • /job
    • Place a "job.ini" file in this directory for the schedule to run it
  • /post
    • Place a node project in this directory to be run after the schedule is finished
⁠Ports
  • 9001 - can be opened up for the supervisor remote management web console
⁠Be sure timezone is set in the docker container for an accurate schedule:
    volumes:
      - "/etc/localtime:/etc/localtime:ro"
    environment:
      - "TZ=America/Los_Angeles"
⁠Post-process project requirements:

Must be a NodeJS project with a package.json so "npm install" and "npm start" can be run on it during runtime.

Tag summary

Content type

Image

Digest

sha256:d58978446…

Size

49 MB

Last updated

almost 4 years ago

docker pull jwater7/supervisor-scheduler