Automation#
Automation (top bar) manages Storm which runs on its own. Pick a section, then an item to see and edit it, or Add.
Cron: Storm on a schedule. Start from a preset or pick how often it repeats (minutely, hourly, daily, weekly, monthly, yearly), a value and a time; all times are UTC. The value is every how many minutes, hours or days, the weekdays, the days of the month (
-1is the last day) or the dates (05-14); the time isHH:MM, or the minute for hourly (15,45). The form shows thecron.add --periodit runs, such asdaily@03:00,weekly/mon,wed@09:00ormonthly/-1. A job’s query, name and description can be changed and it can be disabled; to change when it runs, add a new job. The details show the next run.Triggers: Storm which runs on the node a change happened to: a node added or deleted, a property set, a tag added or removed, or a light edge added or removed. async runs it in the background after the edit is saved.
Macros: named Storm, run with
macro.exec <name>. Run in a console tab tries one.Dmons: Storm which runs in the background and is restarted if it fails. Start, stop, restart and read its log.

Activity: what a run did#
A cron job, trigger or dmon shows an Activity box, refreshed every few seconds while you look at it. It shows what the Cortex keeps, which is not everything:
The Cortex keeps |
It does not keep |
|
|---|---|---|
Cron job |
how many runs and failures, when the last run started and ended, its result (“finished successfully with 3 nodes” or the error), and the last five errors |
prints; warnings go to the Cortex’s log, not anywhere Storm can read |
Trigger |
how many runs and failures, and the last five errors, in memory: a restart resets them |
prints and warnings |
Dmon |
its last 2000 prints, warnings and errors, with times, in memory: a restart clears them |
anything older |
Its links:
open in a query tab prints the same in a query tab’s Output view (
cron.stat <iden>for a cron job, Storm over$lib.trigger.get()or$lib.dmon.log()for the others), so you can keep it, change it or share it.try it in a console tab opens the job’s query in a console tab, set to run in a throwaway fork, so you see what it prints, warns and errors without keeping its edits. A trigger’s query is run on one node it could fire on (
inet:fqdn | limit 1 | ...). It runs as you, in the current view: the comment at the top says where and as whom the real one runs.follow (dmons) keeps the newest log lines in view.
To keep what a cron job or trigger found, have it write to the graph (a tag, a meta:note) or to a
queue ($lib.queue.gen(name).put(...)) which you read later.
Jobs, triggers and dmons run in the view that was selected when they were added. The Cortex checks
your permissions (cron, trigger, storm.macro, dmon).