👷 Background Jobs¶
Some actions need to run continuously, such as running the API or syncing pipes in a loop. Rather than relying on
cron, you can use the built-in jobs system.
All Meerschaum actions may be executed as background jobs by adding
--daemon flags or by prefacing the command with
start job. New jobs will be given random names, and you can choose to specify a label with
Start a previous job by typing its name after
Stop a running job with
You can stop and remove a job with
You can run any command regularly with the flag
--schedule ― for example,
-s hourly will execute the command once per hour. You can also specify a specific interval, e.g.
-s 'every 10 seconds'. Here are a few of the supported frequencies:
every N [seconds | minutes | hours | days]
daily starting 12:00
monthly starting 6th
Here is the complete documentation for the interval syntax.
You can monitor the status of jobs with
show logs, which will follow the logs of running jobs.
You can attach to specific jobs by listing their names:
You can get a plain printout by adding