Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remram44/unix-at
Talk to the at(1) daemon, to schedule jobs for later
https://github.com/remram44/unix-at
at atq cron job-queue job-scheduler linux python unix
Last synced: 20 days ago
JSON representation
Talk to the at(1) daemon, to schedule jobs for later
- Host: GitHub
- URL: https://github.com/remram44/unix-at
- Owner: remram44
- License: bsd-3-clause
- Created: 2023-10-11T20:19:08.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-11T20:41:20.000Z (about 1 year ago)
- Last Synced: 2024-04-16T03:45:53.457Z (7 months ago)
- Topics: at, atq, cron, job-queue, job-scheduler, linux, python, unix
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
unix-at
=======This tiny library allows you to talk to the `at(1)` system, available on most UNIX machines, to schedule jobs to be run later.
Using `at(1)` can be much more light-weight than running a full-fledged job-processing system such as `Celery `__ if you are running very few jobs, however the performance will be much lower if you are running a considerable amount of tasks.
Example
-------.. code-block:: python
import unix_at
job = unix_at.submit_shell_job(['touch', '/some/file'])
unix_at.cancel_job(job)
job = unix_at.submit_python_job(os.mkdir, 'now + 1 hour', '/some/dir')