All Projects → pugnascotia → Mantra

pugnascotia / Mantra

Licence: gpl-3.0
A simple cron-like scheduler for a single command

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Mantra

croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (+604.17%)
Mutual labels:  cron, schedule
sidecloq
Recurring / Periodic / Scheduled / Cron job extension for Sidekiq
Stars: ✭ 81 (+237.5%)
Mutual labels:  cron, schedule
aws-tag-sched-ops
Retired, please see https://github.com/sqlxpert/lights-off-aws
Stars: ✭ 24 (+0%)
Mutual labels:  cron, schedule
Forest
分布式任务调度平台,分布式,任务调度,schedule,scheduler
Stars: ✭ 231 (+862.5%)
Mutual labels:  cron, schedule
Crono
A time-based background job scheduler daemon (just like Cron) for Rails
Stars: ✭ 637 (+2554.17%)
Mutual labels:  cron, schedule
legacy-bottlerockets
Node.js high availability queue and scheduler for background job processing
Stars: ✭ 25 (+4.17%)
Mutual labels:  cron, schedule
gymbox-bot
Simplify the booking of a gymbox class.
Stars: ✭ 21 (-12.5%)
Mutual labels:  cron, schedule
Sleepto
An alternative to traditional task schedulers
Stars: ✭ 98 (+308.33%)
Mutual labels:  cron, schedule
scheduler
Task Scheduler for Laravel applications. UI from scratch
Stars: ✭ 18 (-25%)
Mutual labels:  cron, schedule
nodejs-cron-job-must-know
it is an example of running node.js script with every certain period(cron job)
Stars: ✭ 35 (+45.83%)
Mutual labels:  cron, schedule
Schedule Bundle
Schedule Cron jobs (commands/callbacks/bash scripts) within your Symfony application.
Stars: ✭ 216 (+800%)
Mutual labels:  cron, schedule
cron-schedule
A zero-dependency cron parser and scheduler for Node.js, Deno and the browser.
Stars: ✭ 28 (+16.67%)
Mutual labels:  cron, schedule
Schedule
Schedule module for Nest framework (node.js) ⏰
Stars: ✭ 137 (+470.83%)
Mutual labels:  cron, schedule
delay-timer
Time-manager of delayed tasks. Like crontab, but synchronous asynchronous tasks are possible scheduling, and dynamic add/cancel/remove is supported.
Stars: ✭ 257 (+970.83%)
Mutual labels:  cron, schedule
Cron
A cron expression parser in Rust
Stars: ✭ 132 (+450%)
Mutual labels:  cron, schedule
watchman
📆 更夫(watchman)是一款可视化的定时任务配置 Web 工具,麻麻不用担心我漏掉任何更新啦!
Stars: ✭ 40 (+66.67%)
Mutual labels:  cron, schedule
Wp Missed Schedule
Find only missed schedule posts, every 15 minutes, and republish correctly 10 items each session. The Original plugin (only this) no longer available on WordPress.org for explicit author request! Compatible with WP 2.1+ to 4.9+ and 5.0-beta3 (100.000+ installs 300.000+ downloads 2016-04-13) Please: do not install unauthorized malware cloned forked!
Stars: ✭ 69 (+187.5%)
Mutual labels:  cron, schedule
Jobber
An alternative to cron, with sophisticated status-reporting and error-handling
Stars: ✭ 1,217 (+4970.83%)
Mutual labels:  cron, schedule
schedule-rs
An in-process scheduler for periodic jobs. Schedule lets you run Rust functions on a cron-like schedule.
Stars: ✭ 93 (+287.5%)
Mutual labels:  cron, schedule
linda
Linda is a simple dispatcher library.
Stars: ✭ 12 (-50%)
Mutual labels:  cron, schedule

mantra

A simple cron-like scheduler for a single command

Motivation

Running a process in a Docker container on a fixed schedule is fiddly. Most solutions seem to involve installing cron, then installing a crontab and tailing cron's output. Yuck.

mantra is more like at, in that it allows you to specify the schedule as an argument in a cron format, along with the executable name and any arguments. It will then run that command, and only that command, on the schedule provided. STDOUT and STDERR are shared, making it easier to capture the program output.

Usage

Execute my_prog with some arguments at 1am every day:

mantra "0 1 * * * *" my_prog arg1 arg2

In Docker

In your Dockerfile, download the latest binary, for example:

RUN curl -o /usr/local/bin/mantra -L https://github.com/pugnascotia/mantra/releases/download/0.0.1/mantra && \
    chmod +x /usr/local/bin/mantra

Then call it:

CMD mantra schedule my_prog arg1 arg2 ...

See Also

Uses a slightly modified version of the excellent robfig/cron package.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].