πŸš€ We're live on Product Hunt!
Upvote β†’
Back to Documentation

Schedule Workflows with rtrvr.ai

The Workflow Scheduler in rtrvr.ai allows you to automate tasks to run in the background at specified intervals using cron schedules. This is particularly useful for repetitive tasks like data extraction, reporting, or monitoring, allowing you to set up workflows and have them run automatically.

Core Concepts

Here are the core concepts of the Workflow Scheduler:

  • β†’
    Cron Schedules: Define when your workflows should run using cron expressions.
  • β†’
    Automated Execution: Workflows run automatically in the background without requiring manual intervention.
  • β†’
    Background Processing: Once a schedule is set, workflows run in the background without needing the browser to be open.
  • β†’
    Reusing Workflows: Select previously successful workflows to schedule for automated execution.

Setting Up a Workflow Schedule

Here’s how to schedule a workflow:

  1. Create a Successful Workflow: Ensure you have a working workflow that you want to automate.
  2. Access the Scheduler: Navigate to the "Scheduler" settings within the rtrvr.ai side panel.
  3. Enter a Cron Schedule: Specify when you want your workflow to run using a cron expression.
  4. Select the Workflow: Choose the workflow you want to run from the list of saved workflows.
  5. Enable the Schedule: Enable the workflow to start running at the specified times.

Understanding Cron Schedules

Cron expressions are used to specify the timing of scheduled tasks. A cron expression typically consists of five or six fields:

FieldDescriptionAllowed Values
MinuteThe minute of the hour the task will run0-59
HourThe hour of the day the task will run0-23
Day of MonthThe day of the month the task will run1-31
MonthThe month of the year the task will run1-12 (or JAN-DEC)
Day of WeekThe day of the week the task will run0-6 (0 is Sunday, or SUN-SAT)

Example Cron Schedules

  • β†’
    0 0 * * *

    Runs the workflow every day at midnight.

  • β†’
    0 9 * * 1-5

    Runs the workflow every weekday (Monday to Friday) at 9 AM.

  • β†’
    0 12 * * 6

    Runs the workflow every Saturday at 12 PM.

  • β†’
    0 0 1 * *

    Runs the workflow on the first day of every month.

Tips for Workflow Scheduling

  • β†’
    Test Thoroughly: Before scheduling, make sure your workflow runs smoothly.
  • β†’
    Start Simple: If you're new to cron expressions, start with basic schedules and then increase the complexity as you are comfortable.
  • β†’
    Monitor Regularly: Check the execution logs to ensure your workflows are running as expected.