minimal cron alternative for containers
Project description
micron
Minimal replacement for cron in containers
micron
is made to easily create scheduled-tasks containers,
with the following limits:
- 1 task per container
- 1 schedule per task (cron-compatible)
- one execution at a time (if the first execution is not finished in time for the next schedule, execution is skipped)
Installation
pip install micron
Usage
usage: micron [-h] [-x] [-q] schedule program [program ...]
positional arguments:
schedule a cron-like schedule
program the command line to run
optional arguments:
-h, --help show this help message and exit
-x, --exit-on-error exit if the program return-code is non-zero
-q, --quiet do not log micron actions
Example
micron '0 0 * * *' -- find /var/log -name '*.log' -mtime +30 -delete
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
micron-1.0.post1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for micron-1.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60435b13794a4bc3c1aaafe8db2aaf225baf3c0ccd4316cfefe6e8fa80ad35a6 |
|
MD5 | 6fba70955be987f6a74d5d51720282f0 |
|
BLAKE2b-256 | 5b927d0baffbec9e1b6b8df54eab989f9ceb6d05822f65d007265219a7211186 |