Schedule Recurring Workflow Runs

Set a workflow to run on its own every week, every two weeks, every month or every quarter. Give it a dynamic time range such as Last week or Last month, and each run covers the latest data without you changing any dates. You can schedule workflows in Ecoscope Web.

Before You Start

  • Run the workflow successfully at least once.
  • Give the workflow a dynamic time range, as the next section explains. A fixed time range returns the same results on every run, so Ecoscope won't schedule it.
  • Check that the workflow uses the current version of its template. If it's outdated, Ecoscope asks you to update it first. To learn more, read Understanding Workflow Templates in Ecoscope.
  • Each workflow can have one schedule. To run the same analysis on two schedules, duplicate the workflow and schedule the copy.

Set a Dynamic Time Range

The time range sets which data each run covers. You choose it when you configure the workflow. With a dynamic time range, Ecoscope works out the exact dates each time the workflow runs, in the workflow's timezone. Runs you start yourself use the same time range.

Time range Data each run covers
Yesterday The previous day
Last week (Sunday–Saturday) The previous full week, from Sunday to Saturday
Last month The previous calendar month
Custom Fixed dates you choose. Every run covers the same dates, so you can't schedule a workflow that uses it.

For a New Workflow

  1. Start a new workflow from a template, as you normally would.
  2. In the Time Range section, choose a Timezone.
  3. Under Time range, choose Yesterday, Last week (Sunday–Saturday) or Last month.
  4. Finish the rest of the form and click Submit.
  5. Click Run. Once the run succeeds, you can create a schedule.

For an Existing Workflow

  1. In My Workflows, click the options menu (⋮) on the workflow and choose Edit. You can also click Edit configuration on the workflow's Schedule tab.
  2. In the Time Range section, choose a Timezone.
  3. Under Time range, choose Yesterday, Last week (Sunday–Saturday) or Last month.
  4. Click Submit.

Match the time range to how often the workflow runs. A monthly schedule with Last month gives you a monthly report, and a weekly schedule with Last week (Sunday–Saturday) gives you a weekly one.

Create a Schedule

  1. In My Workflows, click the options menu (⋮) on the workflow and choose Create schedule. Ecoscope opens the Schedule tab of the workflow results screen. The Reporting period card shows the workflow's time range and timezone.
  2. Under When to run, choose a Cadence: Weekly, Fortnightly, Monthly or Quarterly.
  3. In Starting on, pick the first date the schedule can run.
  4. In Run at, set the time of day. Ecoscope uses the workflow's timezone, shown under the field.
  5. Choose the day of the run:
    • For Weekly or Fortnightly, choose the Day of the week.
    • For Monthly or Quarterly, enter the Day of the month. If a month is shorter than the day you enter, Ecoscope runs on that month's last day.
  6. Under Schedule ends, keep Never, or choose On a date and pick the last date the schedule runs.
  7. Under Email notifications, select Email me on success, Email me on failure, or both.
  8. Check the date in Next scheduled run, then click Save schedule. The status changes to Active schedule.

If Ecoscope shows a message instead of the schedule settings, follow it:

  • Workflow can't be scheduled means the workflow uses a fixed time range. Click Edit configuration, choose a dynamic time range and submit the form.
  • Run workflow to schedule means the workflow hasn't run successfully yet. Run it, then create the schedule.
  • Update workflow to schedule means the workflow uses an outdated template version. Click Update workflow, save your changes, then create the schedule.

Track Scheduled Runs

In My Workflows

The Schedule column shows each workflow's schedule status, such as Unscheduled. To list only the workflows you care about, use the Schedule filter above the table. To open a schedule, click the options menu (⋮) and choose Manage scheduling.

On the Workflow Results Screen

  • The Schedule tab shows your settings, the Next scheduled run and the schedule status: Unscheduled, Active schedule or Schedule paused.
  • The Sharing & History tab lists every scheduled run, plus any run Ecoscope skipped.

Why Ecoscope Skips a Run

If the workflow is still running when the next run is due, Ecoscope skips that run and notes it in Sharing & History. The following run goes ahead as planned. If this happens often, choose a less frequent cadence or a shorter time range.

Pause, Resume or Delete a Schedule

  1. In My Workflows, click the options menu (⋮) and choose Manage scheduling.
  2. In the Scheduled card on the Schedule tab, choose an action:
    • Pause schedule stops future runs. The status changes to Schedule paused, and Next scheduled run reads "No upcoming runs while paused."
    • Resume schedule starts the schedule again.
    • Delete schedule removes the schedule. Your earlier runs and their results stay available.
  3. To change the cadence, day, time or emails, update the fields under When to run or Email notifications, then click Save schedule.

When Ecoscope Pauses a Schedule for You

Ecoscope pauses a schedule when a scheduled run fails. It also pauses it when the workflow needs an update to a new major template version. Select Email me on failure to hear about it right away. To get the schedule going again:

  1. Open View Metadata on the failed run to see the error and any suggested fix.
  2. Fix the cause. If the workflow needs an update, click Update workflow and save.
  3. On the Schedule tab, click Resume schedule.

If the workflow's template is no longer available, you can still pause or delete the schedule, but you can't resume it.

Change a Scheduled Workflow

  • Switch to a different dynamic time range or timezone. The change applies to future runs. Past results stay as they are.
  • Switch to Custom dates. A schedule needs a dynamic time range, so Ecoscope asks you to confirm with Save and cancel schedule. Your earlier runs and results stay available.
  • Duplicate the workflow. The copy keeps the time range and timezone.
  • Run it now. Click Run in My Workflows at any time. The run uses the same settings as the previous run.