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_uidas the call that started the job. - The admin client of the
paradime-iopackage. See Admin client.
Wait for a job
Polls a job until it isSUCCEEDED or FAILED.
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
AdminConnectionTestFailedExceptionwhen the deploy key can’t push. The exception’sjobattribute is the failed job. - A job that is not finished after
timeoutseconds raisesAdminJobTimeoutException. Itsjobattribute 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: upgradeparadime-io.
Get a job
Reads a job once, without waiting.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’sresult holds only their first page.
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 fromparadime.apis.admin.jobs.types.