Prerequisites:
- This feature is available with the Paradime Bolt plan.
- Your API keys must have either Bolt Schedules Admin or Bolt Schedules Metadata Viewer capabilities.
These examples authenticate with an account API key (
api_secret="prdm_cmp_..." plus workspace_uid), which requires paradime-io 6.0.0 or later. Legacy workspace API keys (api_key + api_secret) are still supported. See Getting Started.List Bolt schedules
Get a list of Bolt schedules. The list is paginated. The total count of schedules is also returned.Flag to indicate whether to return inactive schedules instead of active schedules.
Filter by paused (suspended) state. Leave as
None to return all schedules, pass True for only paused schedules, or False for only active (non-paused) schedules.Get latest runs for a schedule
Deprecated alias for
slug. Still accepted for backwards compatibility — emits a DeprecationWarning. Exactly one of slug or schedule_name must be provided.An object containing the list of Bolt runs with details like ID, status, actor, timestamps, and git information.
Create a Bolt schedule
Create a new Bolt schedule and get back its slug. The slug is the identifier you pass asslug= to every other Bolt method (trigger_run, get_schedule, delete_schedule, etc.).
PagerDuty / Datadog / incident.io / New Relic incident triggers fired on failures.
Paradime self-healing agent (auto-retry + Slack updates).
Turbo CI config: defer state to another schedule with
deferred_schedule_slug, or to a Bolt environment with defer_environment_slug (SDK 6.9.0 and later). Set one, not both.Slim-CI-style deferred schedule config. Takes the same fields as
turbo_ci, including defer_environment_slug.Run this schedule when a parent schedule (possibly in another workspace) finishes.
Environment-variable overrides for this schedule.
Create a minimal schedule
Create a schedule with notifications, env vars, and self-healing
Create a schedule using raw dicts (escape hatch)
Every nested input also accepts a plain dict that matches the GraphQL shape. Useful when you want to set a field that isn’t yet modelled as a typed input.Delete a Bolt schedule
Delete a Bolt schedule by slug. Schedules defined in YAML cannot be deleted via the API — remove them from the repository instead.Get a Bolt schedule
Retrieves information about a specific schedule.Deprecated alias for
slug. Still accepted for backwards compatibility, emits a DeprecationWarning. Exactly one of slug or schedule_name must be provided.An object containing information about the schedule (commands, cron expression, owner, source, latest run ID, and suspended state).
Suspend or resume a Bolt schedule
Suspends or resumes a schedule created via the UI or API.This only works for schedules created via the UI or API, not via YAML.
Deprecated alias for
slug. Still accepted for backwards compatibility, emits a DeprecationWarning. Exactly one of slug or schedule_name must be provided.List all schedule names
List schedule names across all workspaces in the company. Unlikelist_schedules (scoped to the API key’s workspace), this returns schedules in every workspace, so schedule_trigger references that point at another workspace can be validated.
Create schedule slugs
Mint slugs for a list of display names via the backend.Triggering a Bolt run
Triggers a run for a given schedule slug.Deprecated alias for
slug. Still accepted for backwards compatibility — emits a DeprecationWarning. Exactly one of slug or schedule_name must be provided.The list of commands to execute in the run. This will override the commands defined in the schedule. Defaults to None.
A freeform reason/label describing why or from where the run was triggered (e.g. the application that made the call). Stored with the run for context and auditing. Defaults to None.
Trigger a run with default commands and branch
Trigger a run with a custom git branch and PR Number
Trigger a run with custom commands
Trigger a run with a custom git branch
Trigger a run with a reason
Retrying a Bolt run
Retry the latest failed run of a schedule by slug Retries the latest failed run of a Bolt schedule by slug, without needing to know its run ID. Resumes from the failed command of the most recent run of the given schedule. The first failed dbt command is substituted withdbt retry when supported. Infrastructure commands (git clone, dbt deps) are skipped. Turbo CI runs and merge runs are steps of a CI/CD chain and can’t be retried this way: retry them from the Paradime UI or with GitHub’s Re-run button.
A new Bolt run is created; the original run is unchanged.
Deprecated alias for
slug. Still accepted for backwards compatibility — emits a DeprecationWarning. Exactly one of slug or schedule_name must be provided.Retry only failed commands by Run ID
Retries a failed Bolt run by re-running only the failed commands. The first failed dbt command is substituted withdbt retry when supported, so only the failed models are re-executed. Infrastructure commands (git clone, dbt deps) are skipped.
A new Bolt run is created; the original run is unchanged.
Retry all commands by Run ID
Retries a Bolt run by re-running every original command verbatim, regardless of which ones succeeded or failed. Infrastructure commands (git clone, dbt deps) are excluded.
A new Bolt run is created; the original run is unchanged.
Streaming logs from a Bolt command
Tail the stdout and stderr of a Bolt command while it is still running, instead of waiting for the run to finish and reading the final logs. Two methods are available:stream_command_logs(command_id)— a generator that yields lines as they arrive and stops automatically when the command finishes. Use this for live tailing.get_command_logs(command_id, cursor)— a single batch fetch using an opaque cursor. Use this when you need finer control over polling cadence or want to interleave log polling with other work.
BoltLogLine objects with a stream field (BoltLogStream.STDOUT or BoltLogStream.STDERR) and a line field (the raw log line).
To get a
command_id, list the commands for a run with paradime.bolt.list_run_commands(run_id).Stream logs until the command finishes
stream_command_logs polls until the command exits and yields each line as it arrives.
Each log line in arrival order within a poll batch. Stdout lines for the batch precede stderr lines (approximate interleaving — true cross-stream ordering is not recorded).
One-shot polling with a cursor
get_command_logs returns a single batch with an opaque cursor and a finished flag. Pass the cursor back into the next call to fetch only new lines.
Opaque cursor returned by the previous call. Use the default
"0:0" on the first call to fetch from the beginning.An object with
lines (List[BoltLogLine]), cursor (str — pass to the next call), and finished (bool — flips to True once the command exits).Cancelling a Bolt run
Cancels a Bolt run.Get the status of a run
Retrieves the status of a run based on the provided run ID.List commands for a run
Retrieves the list of command level details for a given run, sorted by command ID.List artifacts for a command
Retrieves the artifacts associated with a given command.To get a
command_id, list the commands for a run with paradime.bolt.list_run_commands(run_id).A list of
BoltCommandArtifact objects representing the artifacts, each with an id and a path.Get an artifact URL
Retrieves the URL of an artifact based on its ID.Bolt archives a run’s artifacts 60 days after the run starts, and you can’t download them after that. See Archived artifacts. Check that the returned URL isn’t empty before you download from it.
Getting Bolt run artifacts
Get latest run manifest.json Retrieves the latest manifest JSON for a given schedule.Deprecated alias for
slug. Still accepted for backwards compatibility — emits a DeprecationWarning. Exactly one of slug or schedule_name must be provided.Deprecated alias for
slug. Still accepted for backwards compatibility — emits a DeprecationWarning. Exactly one of slug or schedule_name must be provided.The index of the command in the schedule. Defaults to searching through all commands from the last command to the first.