Errors

All pyzeebe errors inherit from PyZeebeError

exception pyzeebe.errors.PyZeebeError
exception pyzeebe.errors.TaskNotFoundError
exception pyzeebe.errors.NoVariableNameGivenError(task_type: str)
exception pyzeebe.errors.DuplicateTaskTypeError(task_type: str)
exception pyzeebe.errors.ActivateJobsRequestInvalidError(task_type: str, worker: str, timeout: int, max_jobs_to_activate: int)
exception pyzeebe.errors.JobAlreadyDeactivatedError(job_key: int)
exception pyzeebe.errors.JobNotFoundError(job_key: int)
exception pyzeebe.errors.MessageAlreadyExistsError
exception pyzeebe.errors.ProcessDefinitionNotFoundError(bpmn_process_id: str, version: int)
exception pyzeebe.errors.ProcessInstanceNotFoundError(process_instance_key: int)
exception pyzeebe.errors.ProcessDefinitionHasNoStartEventError(bpmn_process_id: str)
exception pyzeebe.errors.ProcessTimeoutError(bpmn_process_id: str)
exception pyzeebe.errors.ProcessInvalidError
exception pyzeebe.errors.InvalidJSONError
exception pyzeebe.errors.ZeebeBackPressureError

If Zeebe is currently in back pressure (too many requests)

See: https://docs.camunda.io/docs/self-managed/zeebe-deployment/operations/backpressure/

exception pyzeebe.errors.ZeebeGatewayUnavailableError
exception pyzeebe.errors.ZeebeInternalError
exception pyzeebe.errors.ZeebeDeadlineExceeded

If Zeebe hasn’t responded after a certain timeout

See: https://grpc.io/docs/guides/deadlines/

exception pyzeebe.errors.InvalidOAuthCredentialsError
exception pyzeebe.errors.UnknownGrpcStatusCodeError(grpc_error: AioRpcError)

Exception Handler

async pyzeebe.default_exception_handler(e: Exception, job: Job, job_controller: JobController) None