Schedules
Associate a recurring start with a flow version and time zone.
On this page
Configure the schedule
Choose the flow version, an IANA time zone and a five-field cron expression: minute, hour, day, month and weekday. With overlap: skip, a scheduled occurrence is skipped while the preceding run is still running. Set enabled deliberately.
curl
curl -X POST "$RDC_BASE_URL/integrations/v1/schedules" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"flowId": "flow-order",
"version": 1,
"expression": "0 9 * * *",
"timeZone": "Europe/Bucharest",
"overlap": "skip",
"enabled": true,
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/schedules`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"flowId": "flow-order",
"version": 1,
"expression": "0 9 * * *",
"timeZone": "Europe/Bucharest",
"overlap": "skip",
"enabled": true,
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/integrations/v1/schedules',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'flowId': 'flow-order',
'version': 1,
'expression': '0 9 * * *',
'timeZone': 'Europe/Bucharest',
'overlap': 'skip',
'enabled': True,
'operationId': '33a22ec0-f0af-4498-a388-123456789abc',
'expectedRevision': 0,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"flowId": "flow-order",
"version": 1,
"expression": "0 9 * * *",
"timeZone": "Europe/Bucharest",
"overlap": "skip",
"enabled": true,
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/v1/schedules');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/integrations/v1/schedules");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"flowId": "flow-order",
"version": 1,
"expression": "0 9 * * *",
"timeZone": "Europe/Bucharest",
"overlap": "skip",
"enabled": true,
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"expectedRevision": 0
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "33a22ec0-f0af-4498-a388-123456789abc",
"status": "accepted",
"aggregateRevision": 1,
"aggregateId": "schedule-orders"
} Inspect the saved schedule
Confirm the operation and read the schedule. Verify its flow, version, time zone and expression before relying on the next start. Check behavior around clock changes in the time zone you selected.
curl
curl "$RDC_BASE_URL/integrations/v1/schedules/schedule-orders" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/integrations/v1/schedules/schedule-orders`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/integrations/v1/schedules/schedule-orders',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/integrations/v1/schedules/schedule-orders');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/integrations/v1/schedules/schedule-orders");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"id": "schedule-orders",
"flowId": "flow-order",
"version": 1,
"expression": "0 9 * * *",
"timeZone": "Europe/Bucharest",
"overlap": "skip",
"enabled": true,
"revision": 1
} Operate scheduled runs
Inspect each run separately. A failed earlier run is not repaired by a later scheduled start. Diagnose the failed step and decide whether retrying it is safe before allowing duplicate downstream work.