Scheduling and run history

Schedule your jobsCreate a recurring task for a job.

The Scheduler runs a job at the time you choose, once or on a repeating schedule. Each scheduled job is a task. After this chapter you can schedule a job to run every morning, check how its runs went, and get an email when a run succeeds or fails.

Open it from DE/ML, then the calendar icon in the left menu (Scheduler).

Tasks are grouped by project. A green dot beside a name means the task is active. A red dot means it is inactive.
Tasks are grouped by project. A green dot beside a name means the task is active. A red dot means it is inactive.

Before you start, you need a saved job with working code. Run it by hand once first. You also need permission to run ETL jobs and to use compute (see Runtimes and compute).

Schedule a job#

  1. Select New Task.
  2. Choose a Select Project, then a Select Job. The job list shows that project's jobs.
  3. Select the RTE box. Choose a Runtime and Compute size, then select Save in the panel.
  4. Choose a schedule type: Streaming (runs once) or Batch (repeats).
  5. Type a Name. Use letters, digits, ., - and _. Spaces are rejected.
  6. Add a Description if you like.
  7. Pick the Start date and Start time.
  8. For Batch, set Recurrence and Ends.
  9. Select Save.
The New Task form with the default Streaming type: one date and time.
The New Task form with the default Streaming type: one date and time.

What happens next: You see Job scheduled successfully and the task appears in the list. Its status shows the latest run: Running, Success or Failed.

How to check it worked: From the task's row menu choose Run Once, wait a couple of minutes, then choose View Logs.

Choose the schedule type#

Type What happens
Streaming (default) The task runs once, at the start date and time you pick
Batch The task repeats. You set how often, and when it stops
Batch adds a Recurrence panel with Repeat and Ends.
Batch adds a Recurrence panel with Repeat and Ends.

Set how often it repeats#

Repeat What you set
Minutes Every N minutes (0 to 59)
Hourly Every N hours (0 to 23)
Daily At the start time, every day
Weekly At the start time, on the weekdays you click
Monthly The 1st of every month at the start time. Select Custom to choose specific dates
Yearly Every N years (1 to 24)

Ends has two choices. Never keeps the task going. On shows an End date and End time. If the end is not after the start, the form says End date and time must be after the start date and time.

Warning

Schedules follow UTC. Groundzero converts the start time you pick from your own time zone, so the repeating pattern follows UTC. A daily task started at 06:00 in India runs at 00:30 UTC every day.

Find your way around the Scheduler#

Element What it does
Select Project Tick one or more projects to show only their tasks
Refresh control Shows Refreshed Ns ago. The page refreshes itself. Select the circular arrow to refresh now
New Task Opens the task form
Project groups Select a project row to expand or collapse it. The number in brackets is its task count
Column Meaning
Schedule Name The task name, with its active or inactive dot
Job Name The job that runs
Start The first run time, in your local time zone
End The stop time, if there is one
Status The latest run: Running, Success or Failed
Actions The row menu

Change, run or stop a task#

Open the Actions menu on the task row.

The row menu. Abort is greyed out because this task is not running.
The row menu. Abort is greyed out because this task is not running.
I want to... Choose You see
Read how the task is set up View Details A summary: name, project, job, type, description, runtime, compute, start and end, and who last changed it
Change the schedule Edit The form with the current values. name is successfully rescheduled
Remove the task Delete Are you sure you want to delete? then name is successfully deleted
Run once more, now Run Once An extra run about two minutes from now with the same job, runtime and compute. name executed successfully
Stop a run in progress Abort Successfully aborted. Enabled only while the status is Running
Stop future runs Stop Schedule name stopped successfully
See recent runs Last 10 runs The run history page
Read the latest log View Logs A log dialog
Get emails about runs Notify Email The notification form

While a run is in progress, every action except Abort and Notify Email is greyed out.

View Details shows how the task is set up, in three sections: Task, Runtime and Schedule.
View Details shows how the task is set up, in three sections: Task, Runtime and Schedule.

Check how runs went#

Read the log of a run#

Select View Logs. A dialog shows a table with Timestamp and Logs columns and a download button.

Log lines for the latest run of a task.
Log lines for the latest run of a task.
Message Meaning What to do
No logs found The run has not produced readable log lines yet Try again in a moment
Execution Id not found The task has not run yet Use Run Once, or wait for the first scheduled run
Error in viewing logs The log could not be shown Try again, or download the log

See the last runs#

Select Last 10 runs. The page lists up to ten recent runs with the task name, job name, start, end and status. Each row has View Logs.

Run history for one task. A Failed row can be opened to read why.
Run history for one task. A Failed row can be opened to read why.

Run a failed job again#

Use Run Once, or fix the job and wait for the next scheduled time.

Get an email when a run succeeds or fails#

  1. Open the task's row menu and select Notify Email.
  2. Choose the Success or Failure tab.
  3. Fill in To, From, Subject and Message. Use the Variables tab to find placeholders for the subject and message. Select one to copy it (Placeholder copied).
  4. Select Save.
The Success tab. Required fields are marked with a red star.
The Success tab. Required fields are marked with a red star.
Field Required Notes
To Yes A valid email address
From Yes A valid email address
CC, BCC No Shown in the form. Groundzero sends To, From, Subject and Message
Subject Yes Text. May include variables
Message Yes Text. May include variables

Save stays greyed out until To, From, Subject and Message are filled in. If a setting already exists, the dialog opens with it filled in, and Save updates it.

Placeholder Value
{STRTTM} Session start time
{ENDTM} Session completion time
{SITENM} Site name
{PRJNM} Project name
{JOBNM} Job name
{CLNTNM} Client name
{STS} Session status
{ERR} Error message
{RTE} Runtime
{RGN} Region
{USR} User
{USRGRPS} Groups

Note

Emails are sent through the email settings your administrators manage in the admin console under Email. See the Analyze, AI and Admin guide.

Troubleshooting#

Symptom Cause Fix
Name cannot contain space The task name has a space Remove the spaces
Error in scheduling name Groundzero rejected the schedule Check the runtime, compute and dates, then try again
A task shows Failed The job code failed Open View Logs or the run history and read the last lines
Abort is greyed out The task is not running Abort works only while the status is Running
Save is greyed out in New Task A required field is empty Fill in project, job, runtime, compute and name
The task runs at an unexpected hour Schedules follow UTC Convert your start time to UTC