Datalore 2024.2 Help

Scheduling

Use scheduling to run your notebooks at selected intervals (hourly, daily, weekly, or monthly). With this feature, you can have your data processed and reports updated regularly.

Set up a schedule

Follow the instruction below to schedule runs for your notebook.

  1. Open the notebook in the editor.

  2. Select Main menu | Run | Schedule runs to open the schedule dialog.

    Schedule dialog
  3. Click Add new schedule.

  4. In the Create schedule for [notebook_name], select a time interval and configure it:

    1. If Hourly is selected, set the minute mark in Minutes.

    2. If Daily is selected, set the exact time in Time and select a time zone.

    3. If Weekly is selected, select a day from the Weekday list, set the exact time, and select a time zone.

    4. If Monthly is selected, specify the day of the month in Day, set the exact time, and select a time zone.

    Setting up a schedule
  5. (Optional) Alternatively, you can click Switch to cron string to set up the time interval using cron expressions.

  6. Under Advanced settings, select one or more of the following options:

    • Under Machine options, choose a behavior for situations when no spot machine is available. The default option is skipping the run. Alternatively, you can choose to wait for an available spot machine within a specified timeout or use an on-demand machine (if you have Datalore credits). Find more details on spot and on-demand machines in Use CPU and GPU machines.

      Machine options
    • Update the report after each successful run (available for already published reports)

    • Notify users of each successful run by email. You can choose from the list of invited collaborators.

    • Notify users of each failed run by email. You can choose from the list of invited collaborators.

  7. (Optional) Provide parameters for your schedule based on the variables used in the Interactive controls:

    • Switch to the Parameters tab.

    • Click the Add new parameter. You will see the Specify parameter dialog.

    • Click Select variable to expand the dropdown. This list contains all the variables used in the interactive controls for this notebook.

    • Select a variable and provide a value. Depending on the interactive control using this value, you can either enter a value or select one of the provided options.

    • Click Specify to add the parameter and close the dialog.

    • (Optional) Repeat the steps above to add another parameter.

    Parameterized runs
  8. Click Apply to save the created schedule.

View or manage scheduled runs

  1. Open the Run & Schedule for [notebook_name] notebook dialog:

    • From the Home page: select Scheduled notebooks on the left-hand side menu and select the notebook that you want to view.

    • From the editor: open the notebook that you want to view and go to Main menu | Run | Schedule runs.

    Scheduled notebooks
  2. You can do the following:

    • To sort run records by run date or status, click the respective column header.

    • To view errors in failed runs, hover over Error for the respective run.

      View error in a scheduled run
    • To view the static representation of a run in Datalore, click the ellipsis for the respective run and select View run.

      View run
    • To delete a run, click the ellipsis for the respective record and select Delete run. This will stop the respective computation immediately without waiting for it to finish.

    • To delete all runs, right-click any run in the list and select Delete all from the menu.

    • To get a .zip file with run artefacts, click Download in the Run results column. The downloaded file contains the notebook version that was run and the attachments (files generated by code).

Manage schedules

  • To edit a schedule, do the following:

    1. Open the Run & Schedule for [notebook_name] notebook dialog as instructed in the procedure above.

    2. Switch to the Schedules tab. You will see the list of the schedules created for this notebook.

      Schedule list
    3. To turn off a schedule, use the toggle next to the schedule name.

    4. To edit a schedule, click the respective item on the list to open the Change schedule for [notebook_title] notebook dialog, make the required changes, and click the Apply button.

    5. To delete a schedule, click the ellipsis for the respective item on the list and select Delete run from the popup menu.

Stop a scheduled run

You can explicitly stop the machine for a scheduled run.

  1. Click the avatar in the upper right corner and select Running machines.

  2. Click Stop for the computation created for the scheduled run that you want to stop.

Stopping a scheduled run

A popup message box will notify you that Datalore stopped the respective computation.

Turn off all schedules for a notebook

  1. On the Home page, select Scheduled notebooks on the left-hand side menu.

  2. On the list, click the ellipsis in the row containing the required notebook.

  3. Select Turn off all schedules from the popup menu.

Delete a schedule
Last modified: 29 May 2024