Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.38 KB

File metadata and controls

36 lines (27 loc) · 1.38 KB

JobConfig

Per-job execution configuration. All durations are in seconds.

Properties

Name Type Description Notes
jitter_factor float Optional jitter in `0.0..=1.0`. `0.1` => +/-10% randomization of each retry delay, which spreads out thundering-herd retries. [optional]
max_retries int
priority int Higher is claimed first within a queue; ties break on `scheduled_at`, then `created_at`.
retry_backoff BackoffStrategy [optional]
retry_delay_secs int
retry_max_delay_secs int
timeout_secs int

Example

from queueflow.models.job_config import JobConfig

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

# convert the object into a dict
job_config_dict = job_config_instance.to_dict()
# create an instance of JobConfig from a dict
job_config_from_dict = JobConfig.from_dict(job_config_dict)

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