Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.18 KB

File metadata and controls

32 lines (23 loc) · 1.18 KB

FailJobRequest

Body for POST /api/v1/jobs/{id}/fail.

Properties

Name Type Description Notes
error str Human-readable failure reason.
lease_token str The lease token returned by the lease call.
retryable bool Whether the engine may retry (subject to the job's max_retries). Defaults to true; send false for permanent failures (e.g. bad input). [optional]

Example

from queueflow.models.fail_job_request import FailJobRequest

# TODO update the JSON string below
json = "{}"
# create an instance of FailJobRequest from a JSON string
fail_job_request_instance = FailJobRequest.from_json(json)
# print the JSON string representation of the object
print(FailJobRequest.to_json())

# convert the object into a dict
fail_job_request_dict = fail_job_request_instance.to_dict()
# create an instance of FailJobRequest from a dict
fail_job_request_from_dict = FailJobRequest.from_dict(fail_job_request_dict)

[Back to Model list] [Back to API list] [Back to README]