container-scheduler
A scheduler for docker containers, made easy. Configure the desired schedule per each container and the library ensures the container will be running at the correct timing.
Usage
To start the scheduler, run the command below
import container_scheduler
schedules = [
{"container": "container_name_1", "crontab": "*/1 * * * *"},
{"container": "container_name_2", "crontab": "0 4 * * *"}
]
container_scheduler.start(schedules)
The function start is synchronous and will not return until the scheduler is running. To stop it gracefully, you can send a SIGTERM or a SIGKILL signal.
The library was originally developed to work in a docker container, acting as a scheduler container for other containers (take a look at docker-container-scheduler)
Meta
Yusef Maali - contact@yusefmaali.net
The scheduling is executed by the schedule-cronjob library, a fork of the excellent schedule from Daniel Bader.
Distributed under the MIT license. See LICENSE.txt for more information.
Metadata
Release files for container-scheduler 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| container-scheduler-1.0.0.tar.gz | 4.2 kB | Without provenance | Details for container-scheduler-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| container_scheduler-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for container_scheduler-1.0.0-py3-none-any.whl |
Total release size: 9.1 kB
Release files / container-scheduler-1.0.0.tar.gz
| Download URL | container-scheduler-1.0.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e8dc2b6caaaac1fea3173bd9a20ba7f6a76c058ae9683bb1f34a9667ebc694e
|
|
BLAKE2b-256 checksum How to use checksums |
94f9d200c0d929a8fef53a483bd3c457143d77016096c23c0a9c683d097580bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / container_scheduler-1.0.0-py3-none-any.whl
| Download URL | container_scheduler-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b733bdc506ae5ee777a2e119aee7d5cb2ce88e7f7923b4d14a2a845e087f0938
|
|
BLAKE2b-256 checksum How to use checksums |
0da8ae42f8536a67754a406f711644f29fca3b2564c798f58352e6c5159defa6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for container-scheduler 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.