Production jobs
A production job runs syntax files unattended: open data, run the steps, export the output and save the data, then write a log. Jobs run from Extensions ▸ Production Jobs or from a terminal, and can be scheduled.
When to use
Section titled “When to use”- Monthly or nightly reports that repeat the same analyses on fresh data.
- Batch runs on a server or a lab machine with no one at the screen.
Assumptions
Section titled “Assumptions”- A job file (
.osjob) lists the data file (or project), syntax steps (files or inline syntax), symbols such as@monththat are replaced in syntax and paths, exports and an optional data save. Relative paths are relative to the job file. - With stop on error (the default) the job stops at the first step with an error. Installed, enabled extensions are loaded.
- Scheduling on macOS writes a launchd agent to
~/Library/LaunchAgents; activate it with thelaunchctl load -wcommand shown. On Linux use the cron line shown, on Windows the Task Scheduler.
How to read the output
Section titled “How to read the output”- The log lists every step with its number of commands and errors, every diagnostic with its line, every export and the total time.
- From a terminal,
python -m orcstat_engine.cli job run report.osjobexits with 0 when everything succeeded, 1 when a step or export failed and 2 when the job file could not be used, so schedulers can alert you.
Reporting (APA)
Section titled “Reporting (APA)”Jobs reproduce analyses exactly; report the analyses themselves. Keep the job file and its syntax with the results so anyone can re-run them.
Syntax:
python -m orcstat_engine.cli job run report.osjob --set @month=2026-10 · python -m orcstat_engine.cli job schedule report.osjob --at 07:30 --weekday 1
This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.