BackgroundJobSummary Model
BackgroundJobSummary Model documentation for Python SDK
Summary of the most recent background job execution for a resource
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| job_id | int | Database identifier of the background job | |
| job_type | str | Logical job type dispatched by the background job framework | |
| status | str | Current status of the background job | |
| attempts | int | Number of attempts started so far | |
| max_attempts | int | Maximum number of attempts allowed for this job | |
| run_at | int | Timestamp when the job becomes eligible to run (milliseconds since epoch) | [optional] |
| lease_until | int | Lease expiration timestamp if the job is currently running (milliseconds since epoch) | [optional] |
| locked_by | str | Identifier of the worker currently holding the lease, if any | [optional] |
| last_error | str | Most recent short error message if the job failed | [optional] |
| updated_at | int | Timestamp when the job row was last updated (milliseconds since epoch) | [optional] |
Example
from goodmem_client.models.background_job_summary import BackgroundJobSummary
# TODO update the JSON string below
json = "{}"
# create an instance of BackgroundJobSummary from a JSON string
background_job_summary_instance = BackgroundJobSummary.from_json(json)
# print the JSON string representation of the object
print(BackgroundJobSummary.to_json())
# convert the object into a dict
background_job_summary_dict = background_job_summary_instance.to_dict()
# create an instance of BackgroundJobSummary from a dict
background_job_summary_from_dict = BackgroundJobSummary.from_dict(background_job_summary_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK