Skip to main content
Some Administration API operations take longer than one request, so they run as jobs: connecting a git repository with the deploy key, checking repository access, deploying YAML schedules, and syncing DinoAI agents from code. The methods that start them return an AdminJob. paradime.admin.jobs reads jobs and waits for them. For the GraphQL side, see Conventions.
Prerequisites
  • These operations are available on every plan.
  • Any API key can read the jobs of its workspace. A company API key reads the jobs of the workspace it targets, so pass the same workspace_uid as the call that started the job.
  • The admin client of the paradime-io package. See Admin client.
The examples on this page use this client:

Wait for a job

Polls a job until it is SUCCEEDED or FAILED.
str
required
The job’s id.
float
default:"600"
How many seconds to wait at most.
float
default:"2"
How many seconds to wait between polls.
Optional[str]
default:"None"
The workspace to target, for a company API key.
AdminJob
The job that succeeded. Its result is the typed result of its kind.
  • A job that fails raises the exception of its failure code, for example AdminConnectionTestFailedException when the deploy key can’t push. The exception’s job attribute is the failed job.
  • A job that is not finished after timeout seconds raises AdminJobTimeoutException. Its job attribute is the job’s last state.
  • A job that the key can’t see raises AdminNotFoundException.
  • A job status that this SDK version doesn’t know raises AdminApiException: upgrade paradime-io.

Get a job

Reads a job once, without waiting.
str
required
The job’s id, as the operation that started it returned.
Optional[str]
default:"None"
The workspace to target, for a company API key.
Optional[AdminJob]
The job, or None when the key can’t see a job with this id.

List the schedules of a deploy

Iterates over every schedule that a deploy job read, YAML and UI, in the order the deploy stored them. The job’s result holds only their first page.
str
required
The id of the job that admin.bolt.deploy_schedules started.
Optional[str]
default:"None"
The workspace to target, for a company API key.
int
default:"100"
How many schedules to read per request, at most 500.
Iterator[DeployedBoltSchedule]
The schedules, read one page at a time. None unless the job is a deploy that succeeded. A job that the key can’t see raises AdminNotFoundException.

Types

Import the models and enums from paradime.apis.admin.jobs.types.
model
model
model
model
model
model