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.SettingsError
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.DecisionNotFoundError(decision_key: int | None, decision_id: str | None)
exception pyzeebe.errors.InvalidJSONError
exception pyzeebe.errors.ZeebeError(grpc_error: AioRpcError)

Base exception for all Zeebe errors.

exception pyzeebe.errors.ZeebeBackPressureError(grpc_error: AioRpcError)

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(grpc_error: AioRpcError)
exception pyzeebe.errors.ZeebeInternalError(grpc_error: AioRpcError)
exception pyzeebe.errors.ZeebeDeadlineExceeded(grpc_error: AioRpcError)

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