Skip to main content

Job scheduler for Docker containers, configured via container labels.

Reason this release was yanked:

Contains an unavoidable bug.

Project description

https://img.shields.io/docker/pulls/funkyfuture/deck-chores.svg https://images.microbadger.com/badges/image/funkyfuture/deck-chores.svg https://img.shields.io/pypi/v/deck-chores.svg

A job scheduler for Docker containers, configured via container labels.

Features

  • define regular jobs to run within a container context with container and optionally with image labels

  • use date, interval and cron-like triggers

  • set a maximum of simultaneously running instances per job

  • restrict job scheduling to one container per service

  • multi-architecture image supports amd64, arm64 and armv7l platforms, no emulator involved

Example

Let’s say you want to dump the database of a Wordpress once a day. Here’s a docker-compose.yml that defines a job that will be handled by deck-chores:

version: "3.7"

services:
  wordpress:
    image: wordpress
  mysql:
    image: mariadb
    volumes:
      - ./database_dumps:/dumps
    labels:
      deck-chores.dump.command: sh -c "mysqldump --all-databases > /dumps/dump-$$(date -Idate)"
      deck-chores.dump.interval: daily

It is however recommended to use scripts with a proper shebang for such actions. Their outputs to stdout and stderr as well as their exit code will be logged by deck-chores.

Maintenance

The final release is supposed to receive monthly updates that includes updates of all updateable dependencies. If one is skipped, don’t worry. When a second maintenance release is skipped, feel free to open an issue to ask what the status is.

You can always build images upon an up-to-date base image with:

make build

Limitations

When running on a cluster of Docker Swarm nodes, each deck-chores instance can only observe the containers on the node it’s running on, and hence only restrict to run one job per service within the node’s context.

Acknowledgements

It wouldn’t be as charming to write this piece of software without these projects:

Authors

  • Frank Sachsenheim (maintaining)

  • aeri4list

  • alpine-digger

  • Brynjar Smári Bjarnason

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deck-chores-1.1.12.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deck_chores-1.1.12-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file deck-chores-1.1.12.tar.gz.

File metadata

  • Download URL: deck-chores-1.1.12.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.4 Linux/5.11.0-17-generic

File hashes

Hashes for deck-chores-1.1.12.tar.gz
Algorithm Hash digest
SHA256 b32d8926336b8c5d9c2e556148c3353c8e8df0362d1f2936e3be9423c49cc221
MD5 ab3ab034fa8d7eb99505e81144c931dc
BLAKE2b-256 0c11d48c21c36a8c13612a0153eaec8852f0dab3bb46e7ebaf169256dac0f833

See more details on using hashes here.

File details

Details for the file deck_chores-1.1.12-py3-none-any.whl.

File metadata

  • Download URL: deck_chores-1.1.12-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.4 Linux/5.11.0-17-generic

File hashes

Hashes for deck_chores-1.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 530a392e3b435aef2d5ec4f083f6be1e55222d5c103f1f9ea9df82129427707d
MD5 ed7ffeabbf56e14a5fecfde2b797fab0
BLAKE2b-256 0579a251b9ebf6353ac6b17d926e702cae2329b5a9e7bbbf55f91d55dc13bdae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page