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 details)
Built Distribution
File details
Details for the file micron-1.0.post1.tar.gz
.
File metadata
- Download URL: micron-1.0.post1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9168b6919c04b5550b1a4fb7e68b76f570167b2977959e586dbdc3dea80a768 |
|
MD5 | b97a1e289ee69b9add9d6b07bf46f763 |
|
BLAKE2b-256 | eb1b6c504cfafd564b090c535b9d2f6f16bede6e79289cacba30076a782ad994 |
File details
Details for the file micron-1.0.post1-py3-none-any.whl
.
File metadata
- Download URL: micron-1.0.post1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60435b13794a4bc3c1aaafe8db2aaf225baf3c0ccd4316cfefe6e8fa80ad35a6 |
|
MD5 | 6fba70955be987f6a74d5d51720282f0 |
|
BLAKE2b-256 | 5b927d0baffbec9e1b6b8df54eab989f9ceb6d05822f65d007265219a7211186 |