Follow exports, imports and other long tasks, download their files, retry or cancel them, and schedule a recurring export or report e-mail with the When (cron) field.
Your role needs the View background jobs permission; schedules need the job schedule permissions.
يتطلب
تُفعَّل من الإعدادات
من يمكنه استخدام هذه الميزة
مالك الحساب، المدير
Exports, imports, workflow runs over many records and bulk actions run in the background, so you can keep working. Background jobs shows them all, with their progress and files. Schedules runs an export or a report e-mail again and again at the times you choose.
Where to find it
Sidebar → Admin → Background Jobs (the Background jobs page).
While an import or export of yours runs, a counter appears in the top bar ("n background jobs running"). Click it to see Running jobs, and View all to open the page.
Schedules is a button at the top of Background jobs.
Before you start
View background jobs lets your role open the page. It shows the jobs of the whole workspace, not only yours. Retry/cancel jobs lets your role retry, cancel and stop loops.
View job schedules, Create job schedules, Edit job schedules and Delete job schedules control the Schedules page.
Follow a job
Each row shows the type, the module, the status (with the error under a failed one), the progress with the time left, when it was submitted, how long it ran, and counts: for an import the records added (+), overwritten (~), skipped (=) and failed (!); for an export the number of rows. The list refreshes by itself while jobs run.
Filter the list by type (Imports, Exports, Report exports, Workflows, Bulk actions, Background loops) and status (Running, Pending, Retrying, Completed, Failed, Dead (out of retries), Cancelled). Click a job to see its details: Job ID, Progress, Submitted, Started, Finished, Duration, Attempt, Type, Started by (a person, or System), the error ("Last attempt failed — retrying" or "Failed on every attempt"), the last lines of the Log and the Raw result.
Actions on a row:
Action
What it does
Download
The file of an export. Only the person who started it, or a workspace admin, sees the button. The person who started it also needs to still have the permission it used (for example, to export that module)
Download (red)
For an import with failed rows: a file of the rows that failed
Cancel job
Stops a job that is waiting ("Job cancelled — it will not run."). Imports, exports and workflow runs can also be stopped while they run: "Cancellation requested — the job stops at its next safe checkpoint."
Retry job
Runs a failed, dead or cancelled job again ("Job re-queued")
Stop loop
Stops a background loop of a workflow, after you confirm in Stop this background loop?. The batch running stops before its next record, no more batches run, and loops started from inside it stop too. Records already changed and e-mails or webhooks already sent stay. It cannot be resumed: run the workflow again to start over
Jobs are cleaned up after 30 days. When an export of records finishes, you get Export of module ready (or failed / cancelled) in the bell; its link opens a download page. The download starts by itself when the file is ready; if nothing happens, click Download again (download links expire after a few minutes). If the file was cleaned up, the page says "This file is no longer available": run the export again.
Schedule a recurring export or report
Open Background jobs → Schedules and click New schedule
Enter a Name and choose What
Export records (a module's records as CSV, XLSX or JSON) or Email a report (a saved report as CSV, XLSX or PDF, sent to the addresses in Email to, up to 50, separated by commas). You can pick only reports you created, unless you are an admin.
Choose the module (Records to export) or the Report, and the Format
Fill in When (cron) and Timezone
Click a ready-made choice (Every hour, Every day at 6:00, Weekdays at 9:00, Every Monday at 9:00, First of the month at 8:00), or type your own (see below). Timezone starts with your workspace's time zone; type another one as a place name such as America/New_York. Check Next runs under the boxes. Add a Description (optional) if you like.
Click Create
The schedule starts as Active. When you edit it later, the On switch turns it off (Off) without deleting it.
"Runs as you, with your access to the data." An Email a report schedule runs the report with the access of the person who created the report. Each run appears in Background jobs. The Schedules list shows each schedule's Name, What, When, Next run, Last run and Status (Active, Paused or Off). Pause, resume, edit or delete a schedule from its row; deleting asks you to confirm. Email a report follows the same recipient rules as report schedules: addresses outside your workspace's allowed domains are skipped (Schedule reports by e-mail).
The When (cron) field in plain words
When (cron) is five values separated by spaces:
minute hour day-of-month month day-of-week
* means "every".
Hours use the 24-hour clock (0–23). Days of the week: 0 or 7 = Sunday, 1 = Monday … 6 = Saturday.
1-5 is a range (Monday to Friday), 1,15 a list, */15 "every 15".
Times are in the Timezone you enter.
You want
Type
Every hour, on the hour
0 * * * *
Every day at 6:00
0 6 * * *
Weekdays at 9:00
0 9 * * 1-5
Every Monday at 9:00
0 9 * * 1
First of the month at 8:00
0 8 1 * *
Every day at 18:30
30 18 * * *
The 1st and 15th at 7:00
0 7 1,15 * *
Every 15 minutes
*/15 * * * *
Always read Next runs before you save: it shows the next three times in the Timezone you entered.
Good to know
Schedules marked Managed ("Managed by the platform") are run by Scratchboard itself, for example for data sync. You can see them but not change them.
Deleting a schedule stops it. Jobs it already started stay in Background jobs.
Some running jobs cannot be stopped part-way; wait for them to finish. Some jobs cannot be retried: start them again instead.
Troubleshooting
Message or symptom
Why
What to do
"Invalid cron expression"
When (cron) is not five valid values
Use a ready-made choice or an example above; check Next runs
"Only failed, dead or cancelled jobs can be retried (this one is …)."
The job is still running or finished well
Wait, or start a new one
"This kind of job cannot be retried; start it again instead."
Some jobs can't be repeated
Start the export or action again
"This job is already running and cannot be stopped part-way. Wait for it to finish."
This kind of job can't be cancelled once it runs
Wait for it to finish
"You no longer have permission to download this file"
Your permissions changed
Ask an admin
"Download link unavailable — check storage configuration."