Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.17 KB

HeartbeatResponse.md

File metadata and controls

30 lines (21 loc) · 1.17 KB

HeartbeatResponse

Response for POST /api/v1/jobs/{id}/heartbeat.

Properties

Name Type Description Notes
status JobStatus The job's current status. `running` means the lease was extended; anything else (`cancelled`, `completed`, ...) means it was not, and the worker should stop working on the job.

Example

from queueflow.models.heartbeat_response import HeartbeatResponse

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

# convert the object into a dict
heartbeat_response_dict = heartbeat_response_instance.to_dict()
# create an instance of HeartbeatResponse from a dict
heartbeat_response_from_dict = HeartbeatResponse.from_dict(heartbeat_response_dict)

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