Schedules
Schedules run your workflows automatically on a recurring basis. Each occurrence has a durable BatchJobRun: accepted work progresses asynchronously, while an overlap or unresolved workflow leaves an explicit skipped occurrence.
For a one-time crawl with durable input, a count-first launch and recovery by
invocation key, use Batch jobs. Manual schedule triggers use
the same run summaries and exact-key recovery, in the schedule_run_now namespace.
Creating a schedule
Section titled “Creating a schedule”- Go to Schedules > New Schedule
- Set a name, frequency, time, and timezone
- Optionally select a specific workflow (or leave blank for automatic domain-based routing)
- Optionally filter by URL tags
- Save and enable
Frequencies
Section titled “Frequencies”| Frequency | Cron equivalent | Description |
|---|---|---|
| Hourly | 0 * * * * |
Every hour on the hour |
| Daily | 0 9 * * * |
Every day at a specific time |
| Weekly | 0 9 * * 1 |
Once a week on a specific day |
| Monthly | 0 9 1 * * |
Once a month on a specific day |
| Custom | Any valid cron | Full cron expression control |
How scheduling works
Section titled “How scheduling works”- The scheduler polls every 30 seconds for due schedules
- It accepts or skips each due occurrence and advances
nextRunAttogether - Accepted work freezes the definition, routing and occurrence identity
- Preparation measures matching enabled URLs; expansion admits jobs in bounded pages
- Jobs run under organization fairness, and the run records progress through terminal outcome
Acceptance returns before URL enumeration or job creation. A run can therefore be
preparing with an unmeasured count. At most one nonterminal run belongs to a
schedule. A concurrent cron occurrence or manual trigger records outcome: "skipped" with skipReason: "overlap", blockingRunId and
blockingRunAgeSeconds. An unresolved explicit workflow or Automatic routing
records skipReason: "workflow_unresolved"; its executable workflow fields are
null. Skips do not admit jobs or spend credits.
Tag filters
Section titled “Tag filters”Schedules can filter which URLs they process using tags. A schedule with tagFilters: ["electronics", "domain:amazon.com"] processes URLs that have ANY of those tags.
A schedule with no tag filters selects every enabled URL in your library.
Before creating an enabled schedule, use
batchJobs.count({ tags: JSON.stringify(tagFilters) })
or GET /api/v1/batch-jobs/count?tags=… and show the URL count. Use the returned
largeRun and warningThreshold for a large-run warning before authorizing
recurring credit spend. In the dashboard, Save remains available if this advisory
count is loading, unavailable or forbidden; a forbidden count names the required
urls:read permission. Failure does not mean zero URLs.
Workflow routing
Section titled “Workflow routing”If a schedule has no explicit workflowId, URLs are matched to workflows by domain:
- URL
https://amazon.com/product/123has tagdomain:amazon.com - Workflow with route
domain:amazon.commatches - If no domain match, the default (
*) workflow is used
Manual trigger
Section titled “Manual trigger”Trigger a schedule immediately from the dashboard or API. Disabled or brand-paused
schedules can be run manually. This preserves the next cron occurrence and does
not register a schedule-agent wake. Count the matching selector first and confirm
large work: accepted runs spend credits, may take hours and have no customer
cancellation. Optional maxJobs is a positive safe-integer cap on admission.
curl -X POST https://api.justcrawl.io/api/v1/schedules/SCHEDULE_ID/trigger \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: catalog-manual-2026-10-16" \ -H "Content-Type: application/json" \ -d '{"maxJobs": 500}'The response is 202 with a flattened run summary: retain id,
submissionKey, entryMode: "schedule_run_now" and replayed. The optional JSON
body accepts only maxJobs; omit it or send {} for no caller cap. A fresh manual
invocation needs schedules:write, a verified email and active quota. A definitive
quota refusal returns 402 and creates no run. Cron can accept a run whose later
admission records credit exhaustion.
| Result | Meaning | Next action |
|---|---|---|
| Accepted run | Durable work exists; jobs may not exist yet | Follow its run link or read its summary |
replayed: true |
This is the same invocation and its current summary | Continue reading that run |
skipped, overlap |
A run for this schedule is still active | Inspect the named blocker and its age |
skipped, workflow_unresolved |
No executable workflow could be resolved | Fix the workflow or published Automatic routes |
A skip consumes its invocation key. Retrying that key replays the skip. Once the
blocker or workflow problem is resolved, use a new key for a deliberate new
trigger. Changing maxJobs under an accepted key returns 409.
If the response is lost, recover before choosing a new key:
curl 'https://api.justcrawl.io/api/v1/batch-job-runs?submissionKey=catalog-manual-2026-10-16&entryMode=schedule_run_now' \ -H "Authorization: Bearer YOUR_API_KEY"This exact lookup returns zero or one run independently of recent history and
checks the original principal. Zero matches means acceptance never committed:
repeat the same intent with the same key. Replay remains available after schedule
edits or deletion. Cron receipts use the server-owned schedule_occurrence
namespace; ordinary BatchJob starts use api. See Idempotency.
The SDK generates or preserves one key before dispatch and safely retries this
endpoint with the same intent. Call
jc.schedules.trigger(id, { maxJobs: 500 }, { idempotencyKey }).
Its BatchJobSubmissionIndeterminateError retains the schedule ID, key and manual
namespace if no usable handle arrives. The MCP tool jc_schedules_trigger accepts
the same cap and an optional submissionKey, returns a bounded structured run
summary, and directs uncertainty to jc_batch_runs_get.
Run history and deletion
Section titled “Run history and deletion”GET /api/v1/schedules/runs and jc.schedules.listRuns() return new and legacy
history together, newest first. New rows have kind: "batch", runId, phase,
outcome, skip reason and blocker metadata, with current member counts. Legacy
rows have kind: "legacy", frozen completed/failed/in-progress counts and no
run link. runId filters either history ID space; domain counts new run members
on that domain. The existing jobsCreated and domainJobsCreated fields are
history counters, not a trigger acceptance result.
Deleting or changing a schedule does not cancel accepted runs or remove their jobs, receipts or frozen schedule names. Deleted schedule references become null. History and exact-key recovery remain available. A recurring dataset’s schedule has the protected deletion rule below.
Enable / disable
Section titled “Enable / disable”Toggle a schedule on or off without deleting it:
curl -X PATCH https://api.justcrawl.io/api/v1/schedules/SCHEDULE_ID/toggle \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"isEnabled": false}'Bound BatchJob definitions
Section titled “Bound BatchJob definitions”Each schedule has a fixed BatchJob definition that holds its workflow and tag
selection. Schedule requests and responses keep workflowId and tagFilters;
the API reads and writes them through that definition. Changing cadence does
not replace its definition. These bindings also appear in the BatchJob list
with kind: "schedule", or kind: "dataset" for an agent dataset schedule.
A dataset schedule shares its dataset’s one definition. You can round-trip its
unchanged workflow and tags, but changing them through schedule fields returns
dataset_definition_readonly (409). Dataset provisioning owns its configuration
and exact workflow version. Deleting a schedule bound to a recurring dataset
agent returns recurring_agent_schedule (409); stop or change the agent first.
Re-enabling an unbound or archived dataset schedule returns
invalid_dataset_binding (409) and leaves the schedule disabled. Unchanged
workflow and tags can still accompany cadence edits when a newer workflow
version is an unpublished draft.
See Batch jobs for permissions and starting a bound definition directly. A direct definition start has no schedule occurrence identity and can coexist with a schedule run.