GoodMem
ReferenceClient SDKsPython SDKModels

BackgroundJobAttempt Model

BackgroundJobAttempt Model documentation for Python SDK

Telemetry captured for a single execution attempt of a background job

Properties

NameTypeDescriptionNotes
attempt_idintIdentifier of the attempt
job_idintIdentifier of the job that owns this attempt
started_atintAttempt start timestamp (milliseconds since epoch)[optional]
finished_atintAttempt completion timestamp (milliseconds since epoch)[optional]
okboolIndicates whether the attempt succeeded (null if still running)[optional]
worker_idstrIdentifier of the worker processing the attempt[optional]
status_messagestrLatest status message reported by the worker[optional]
progress_currentintCurrent progress counter value
progress_totalintTotal progress target when known[optional]
progress_unitstrUnit label associated with the progress counters[optional]
progress_updated_atintTimestamp when progress was last updated (milliseconds since epoch)[optional]
error_messagestrShort error message recorded when the attempt failed[optional]
error_stacktracestrStack trace captured when the attempt failed, if available[optional]

Example

from goodmem_client.models.background_job_attempt import BackgroundJobAttempt

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

# convert the object into a dict
background_job_attempt_dict = background_job_attempt_instance.to_dict()
# create an instance of BackgroundJobAttempt from a dict
background_job_attempt_from_dict = BackgroundJobAttempt.from_dict(background_job_attempt_dict)

↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK

On this page