Skip to main content

Getting started

A first job: refresh a summary table every night, then run it by hand to check it.


At a glance​

⛓New jobJob-level settings + the step pipeline← Back to jobsunsaved changesSave−100%+▶Start+RUN A QUERYrefresh-summaryreporting.daily_summary_ref…+⚑EndCopy a tableRun a queryRun a functionRead a directoryCall an addressStart another jobLoad a fileExport to a fileProduce a reportSend a messageRun a queryrefresh-summarySTEP NAMErefresh-summaryIf this step fails, run the next steps anyway (…)Turned off for this install — never runs (…)CONNECTORreporting⌄QUERYdaily_summary_refresh⌄PARAMETERS+ Add parameterA click on Start brings back the job's settings: Id, schedule, Enabled.Startthe job's own settings1 · The + on the linkopens the list of types2 · Pick Run a querythe card appears in place4 · Savewrites jobs.toml, back to the list3 · Connector and querya named query, not SQL

Before you start​

  • A superuser account, or a role granted Create and edit jobs (nomaflow:edit) — see Administration.
  • A SQL connector with a write query that does the work, for instance daily_summary_refresh (INSERT … SELECT …, REFRESH MATERIALIZED VIEW …, CALL …). A step calls a named query of a connector, not SQL typed in the job. See Create a custom query.

1 — Open the Jobs page​

Open Operations → Jobs in the Nomaflow menu (address /nomaflow). Each job is a line, grouped by application; the toolbar has New job, Schedule and Reload. See Jobs page.

2 — Create the job​

New job opens the editor on an empty flow — Start, End — with the Job settings beside it: Id daily-summary, a Description, the tag reporting, Enabled on.

3 — Add a step​

Click the + on the link between Start and End, then Run a query (sql_query) in the list: the step's card appears in the flow, its fields beside it. Give it a Step name (refresh-summary), pick the Connector, then the Query daily_summary_refresh.

4 — Set the schedule​

Click Start to come back to the job's settings: under Schedule (cron), pick On chosen days, at a set time, at 02:00 and no day — every day at 02:00, saved as 0 2 * * *; Timezone Europe/Paris. Next runs lists the next five nights — check them. Then Save at the top: the job is written, and the Jobs page opens with the job and its schedule.

5 — Run it by hand​

On the job's line, Run now (▶). The line shows the state of the run, then SUCCEEDED; a click on that state opens the run detail: the summary, the step with its state, the rows affected and the log. See Run history.

6 — Be told when it fails​

In Liberty Next → Logic → Notifications, add a rule: trigger A job event, job daily-summary, events failure and missed, channel email, recipient role:ops. See Notifications.


What next​

  • More step types — loading files, copying tables, calling an API: Steps.
  • Run the same job with different parameters on several schedules: Schedulable presets.
  • Ready-made patterns: Workflow recipes.