Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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

Metadata

Release files for micron 1.0.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for micron 1.0.post1
File Size Uploaded
micron-1.0.post1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for micron 1.0.post1
File Interpreter ABI Platform
micron-1.0.post1-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / micron-1.0.post1.tar.gz

Download URL micron-1.0.post1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f9168b6919c04b5550b1a4fb7e68b76f570167b2977959e586dbdc3dea80a768
BLAKE2b-256 checksum
How to use checksums
eb1b6c504cfafd564b090c535b9d2f6f16bede6e79289cacba30076a782ad994
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / micron-1.0.post1-py3-none-any.whl

Download URL micron-1.0.post1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60435b13794a4bc3c1aaafe8db2aaf225baf3c0ccd4316cfefe6e8fa80ad35a6
BLAKE2b-256 checksum
How to use checksums
5b927d0baffbec9e1b6b8df54eab989f9ceb6d05822f65d007265219a7211186
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.post1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page