Update variables on a 5-minute schedule

Recipe ToolsMarketing

What it does

Every 5 minutes, this automation creates and updates a variable called tstVar with the current timestamp. The variable refreshes each cycle so downstream systems always have the latest time.

Who it's for

Engineering teams who need to maintain a timestamp variable at regular intervals.

How teams use this

Track recurring events with timestamps

Maintain a timestamp variable that updates every 5 minutes to log when this automation runs. Use the variable in downstream systems to track timing and intervals.

Monitor system health at intervals

Run health checks every 5 minutes and store the timestamp of each check in tstVar. Add a condition to alert teams if checks fail or fall outside expected windows.

Sync data on a fixed schedule

Use the 5-minute interval to refresh tstVar and trigger data synchronization with external systems. Each cycle ensures data stays current without manual intervention.

How it works

  1. Run every 5 minutes. The Clock triggers this automation on a schedule, running every 5 minutes without any manual input needed from someone.
  2. Set up variable tstVar. A new variable called tstVar is initialized in the Clock to store the timestamp value for this cycle.
  3. Refresh tstVar with current time. The tstVar variable is updated with the current timestamp, replacing the previous value so it stays current.