You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are running on systemd, jobs will be created as user services. Otherwise (e.g. running in Docker) jobs are created as Unix daemons and kept alive by the API server.
You may choose the executor with -e (--executor-keys). Supported values are local, systemd, and the keys for any API instance. See the jobs documentation for more information.
Chain actions with +.
Run multiple commands by joining them with +, similar to && in bash but with better performance (one process).
$ mrsm show pipes + sync pipes
Adding -d (--daemon) will escape these joiners and run all of the chained commands in the job:
$ mrsm show pipes + sync pipes --loop -d
Run chained actions as a pipeline with :.
You can schedule chained actions by adding : to the end of your command:
Add --restart.
Your job will be automatically restarted if you use any of flags --loop, --schedule, or --restart.
Execute actions remotely.
You may execute an action on an API instance by setting the executor to the connector keys. You may run the executor command in the Meercshaum shell (like instance) or pass the flag -e (--executor-keys).
mrsm sync pipes -e api:main
The output is streamed directly from the API instance (via a websocket).
Add from_plugin_import().
You may now easily access attributes from a plugin's submodule with meerschaum.plugins.from_plugin_import().
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
v2.3.0
Add the
Jobclass.You may now manage jobs with
Job:If you are running on
systemd, jobs will be created as user services. Otherwise (e.g. running in Docker) jobs are created as Unix daemons and kept alive by the API server.You may choose the executor with
-e(--executor-keys). Supported values arelocal,systemd, and the keys for any API instance. See the jobs documentation for more information.Chain actions with
+.Run multiple commands by joining them with
+, similar to&&inbashbut with better performance (one process).Adding
-d(--daemon) will escape these joiners and run all of the chained commands in the job:Run chained actions as a pipeline with
:.You can schedule chained actions by adding
:to the end of your command:Other supported flags are
--loop,--min-seconds, and the number of times to run the pipeline (e.g.x2or2):mrsm sync pipes + verify pipes : --loop --min-seconds 600mrsm show pipes + sync pipes : x2Add
--restart.Your job will be automatically restarted if you use any of flags
--loop,--schedule, or--restart.Execute actions remotely.
You may execute an action on an API instance by setting the executor to the connector keys. You may run the
executorcommand in the Meercshaum shell (likeinstance) or pass the flag-e(--executor-keys).The output is streamed directly from the API instance (via a websocket).
Add
from_plugin_import().You may now easily access attributes from a plugin's submodule with
meerschaum.plugins.from_plugin_import().What's Changed
Full Changelog: v2.2.7...v2.3.0
This discussion was created from the release ✨ v2.3.0 Add `Job`, action chaining, and more..
Beta Was this translation helpful? Give feedback.
All reactions