Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.13 KB

LeasedJob.md

File metadata and controls

31 lines (22 loc) · 1.13 KB

LeasedJob

A job leased to a (possibly remote) worker, together with the lease token needed to heartbeat, complete, or fail it.

Properties

Name Type Description Notes
job Job
lease_token str Opaque, unguessable proof of lease ownership, regenerated on every claim. Pass it back on heartbeat/complete/fail; a stale token (the lease expired and the job was reclaimed) is rejected.

Example

from queueflow.models.leased_job import LeasedJob

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

# convert the object into a dict
leased_job_dict = leased_job_instance.to_dict()
# create an instance of LeasedJob from a dict
leased_job_from_dict = LeasedJob.from_dict(leased_job_dict)

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