BackgroundJobAttempt Model
BackgroundJobAttempt Model documentation for Python SDK
Telemetry captured for a single execution attempt of a background job
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| attempt_id | int | Identifier of the attempt | |
| job_id | int | Identifier of the job that owns this attempt | |
| started_at | int | Attempt start timestamp (milliseconds since epoch) | [optional] |
| finished_at | int | Attempt completion timestamp (milliseconds since epoch) | [optional] |
| ok | bool | Indicates whether the attempt succeeded (null if still running) | [optional] |
| worker_id | str | Identifier of the worker processing the attempt | [optional] |
| status_message | str | Latest status message reported by the worker | [optional] |
| progress_current | int | Current progress counter value | |
| progress_total | int | Total progress target when known | [optional] |
| progress_unit | str | Unit label associated with the progress counters | [optional] |
| progress_updated_at | int | Timestamp when progress was last updated (milliseconds since epoch) | [optional] |
| error_message | str | Short error message recorded when the attempt failed | [optional] |
| error_stacktrace | str | Stack 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