GoodMem
ReferenceClient SDKsPython SDKModels

BackgroundJobSummary Model

BackgroundJobSummary Model documentation for Python SDK

Summary of the most recent background job execution for a resource

Properties

NameTypeDescriptionNotes
job_idintDatabase identifier of the background job
job_typestrLogical job type dispatched by the background job framework
statusstrCurrent status of the background job
attemptsintNumber of attempts started so far
max_attemptsintMaximum number of attempts allowed for this job
run_atintTimestamp when the job becomes eligible to run (milliseconds since epoch)[optional]
lease_untilintLease expiration timestamp if the job is currently running (milliseconds since epoch)[optional]
locked_bystrIdentifier of the worker currently holding the lease, if any[optional]
last_errorstrMost recent short error message if the job failed[optional]
updated_atintTimestamp 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

On this page