Scheduling documents
Divooka Compute can run a document for you on a schedule: every weekday at 08:00, every 15 minutes, on the last day of each month, or when a new file lands in a folder. The runs happen even while Compute is closed.
The work is done by the Methodox Task Scheduler, which ships in the Scheduler folder of Divooka Compute Standard. Minimal does not have it. You do not need to set anything up: Compute starts the scheduler when you first schedule a document.
Schedule a document
- Save the document. The scheduler runs the file on disk, so a document with unsaved changes offers Save instead of Schedule.
- Open the Scheduled tab (the clock) in the dock under the canvas.
- Press the clock button in the tab's header, Run this document on a schedule. The Schedule card opens for the document in front.
- Choose When, and fill in the fields that appear.
- Check the line Next, which lists the next three runs.
- Press Schedule. The status bar reads Scheduled and the document's name.
When
| Choice | Fields |
|---|---|
| Every day | at a time, such as 08:00 |
| Weekdays | at a time |
| Every week on | the days, and a time |
| Every month | a day from 1 to 31, or last, and a time |
| Every few minutes | from 1 to 1440 minutes |
| Every few hours | from 1 to 168 hours |
| Once | a date, such as 2026-12-01, and a time |
| When the scheduler starts | none |
| When a file arrives | the folder to watch, and which files: * for any, *.csv for CSV files |
| When signalled | the name of a signal. Send it with mts fire and the name; see Task Scheduler |
| Cron expression | a cron line, such as 0 8 * * 1-5 |
A schedule made in the scheduler's own window that the card cannot show reads As set in the Task Scheduler, and the card keeps it as it is.
Inputs
When the document's entry graph declares inputs, the card shows a box for each, filled with the values of the last run. A date input can be The scheduled day, which gives each run the date it was scheduled for, or A date you type. An input you leave alone runs with its default.
More
More opens three more settings:
- Time zone: the zone the times are in. Empty means this computer's.
- Retries: how many times to try again if a run fails, from 0 to 20.
- Runs in: A process of its own, the default, runs the document with
stew, the command-line runner beside Compute, as a run from the terminal would. The scheduler's host runs it through the scheduler'smts-hostprogram and its Divooka plug-in instead. Keep the default unless you have a reason to change it.
To change a schedule, open the card again for the same document. Remove schedule takes it away.
The Scheduled tab
The Scheduled tab lists every scheduled document with its schedule, its next run and how its last run went: succeeded, failed, timed out, stopped, skipped or interrupted. For each one you can:
- switch it off and on: while off, it does not run
- run it now
- open the document with its schedule
- show its runs in the Task Scheduler window, with what each printed
The header can read the list again, open the Task Scheduler window, and stop the scheduler. While the scheduler is stopped, no scheduled document runs, and the tab offers Start the scheduler.
Runs while Compute is closed
The scheduler keeps running when you close Compute, until you stop it from the Scheduled tab.
To have it start every time you sign in, open Appearance and settings, find the Scheduler section and turn on Start at sign-in. The scheduler then starts without a window. Windows lists it under Startup apps as Methodox Task Scheduler, where you can also turn it off.
Where things are kept
- Each schedule is a task in the scheduler's data folder,
%LOCALAPPDATA%\Methodox\TaskScheduler: one JSON file per task, readable and editable. - The scheduler's log is
server.login the same folder. - The scheduler answers on
127.0.0.1:5770, on this computer only. Use it only on a computer no one else signs in to. On a shared computer, another user's program could take that address first and receive your schedules.
Without the editor
The Scheduler folder also holds mts, the scheduler's command line, and mts-gui, its desktop window. See Task Scheduler.
To run a document once from a script or another scheduler, use stew: see Exporting a program and Stew.