Scheduling#
Scheduling runs tasks at their time without anyone having to be there: recalculating the workbooks that keep data, recalculating a group of workbooks with a procedure before and another after, or calling a stored procedure of the client's database. This chapter covers what is up to whoever administers the system: recalculation groups, scheduled procedures, on whose behalf each task runs, the history, email notices and how it works with several instances.
Before you start#
- The Scheduling page is in the sidebar for whoever has Workbook administration (
/scheduling). It shows the tasks of the active connection. - Recalculation groups and scheduled procedures also require System administration: only with it does the New button appear.
- Scheduling the recalculation of a particular workbook is done by whoever administers workbooks from the workbook browser, with Schedule recalculation…; it is explained in the User manual.


The three kinds of task#
| Kind | What it does | Who manages it |
|---|---|---|
| Workbook recalculation | Calculates again the workbook's documents that keep data (cubes, listings, charts and maps with Keep data), without opening, locking or saving the workbook. | Workbook administration, and being able to open the workbook |
| Recalculation group | Calls a pre-procedure, recalculates several workbooks at once with retries and, if they all finish well, calls a post-procedure. | System administration |
| Scheduled procedure | Calls a stored procedure of the client database with typed arguments. | System administration |
How groups and procedures are created is in Scheduled procedures and recalculation groups.
The Scheduling page#
The Scheduled tasks tab groups the tasks into Workbook recalculations, Recalculation groups and Scheduled procedures, with their Name, Schedule, Next and Last run and an Active switch. A deactivated task carries the Deactivated badge and does not run by itself, but it can be run by hand. Below, Last runs gives the connection's history for the last 90 days.
Click a task to see its detail: its status, Active, Schedule, Next, Last, On behalf of, its workbooks or its call, and its Runs. The buttons are Run now, Stop (while it is running), Modify… and Delete….
While something is still running, the page reads the tasks and runs again every few seconds (first after 2 s, then increasingly spaced, up to 10 s), only with the tab in view.
The Subscriptions and alerts tab shows the subscriptions and data alerts of the connection's workbooks, of all their owners, without their values. Users are the ones who create and manage them (see the User manual); the Failing deliveries operational alert links here.
On whose behalf it runs#
A task runs on behalf of whoever last saved it, with the privileges they have at the moment it runs (those of their roles at that time, with their universes). Therefore:
- Nobody can make a task act with privileges they do not have: whoever modifies it becomes its owner. The dialog reminds you: “It runs in the name of whoever saves it, with their privileges.”.
- Run now acts on behalf of whoever clicks it and does not change the next run.
- If the owner no longer exists or is disabled, the run fails saying so: “… no longer exists or is not enabled. Save the task with another user”.
- What the task calculates is recorded in the audit in the owner's name, with the Scheduled task channel and the run's reference (see Audit).
- The kept data a recalculation leaves is used, when opening the document, by those who have exactly the same privileges as the owner; everyone else recalculates on opening it, as always.
There is no system user or superuser that runs the tasks.
Tip
Save groups and procedures with a service account of your organization that has System administration and access to all connections, rather than with that of a person who may change jobs.
The license#
Without a valid license no task is launched. Those left overdue run once when the license returns. The same on starting the server after a stop: a task that should have run while it was stopped runs once, not as many times as it was missed.
How the chapter is organized#
- Scheduled procedures and recalculation groups: creating them, arguments, pre- and post-procedures, retries and maximum times.
- Runs, history and notices: the history and its statuses, stopping a run, email notices, the alert for tasks that fail repeatedly, several instances and the configuration.
What changes compared with Empowerment Center 7#
- A group's pre and post steps are stored procedures of the connection, not operating system scripts: running server commands from the application would be a door to running code.
- A procedure's arguments are typed (text, number, date or the run day with an offset), instead of a call written by hand.
- Tasks run on behalf of a user with their privileges, not as the superuser.
- Permissions are checked on the server.
- Overdue runs are done once when the server or the license returns, instead of being lost.
- “On opening” does not exist: each document is calculated when opened or serves its kept data.
- The scheduled procedures of the EC7 Windows registry are not imported: they are created by hand.