Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.91 KB

JobConfig.md

File metadata and controls

36 lines (27 loc) · 1.91 KB

JobConfig

Per-job execution configuration. All durations are in seconds. Deserialization is partial-friendly: any omitted field takes its [JobConfig::default] value (via per-field serde defaults), so workflow-step and cron config overrides can name just the fields they change, and out-of-band rows with sparse config JSONB still load. Per-field functions rather than a struct-level #[serde(default)]: the struct-level form makes utoipa attach a default beside the BackoffStrategy $ref, which forces a synthetic wrapper type into every generated SDK.

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 [optional]
priority int Higher is claimed first within a queue; ties break on `scheduled_at`, then `created_at`. [optional]
retry_backoff BackoffStrategy [optional]
retry_delay_secs int [optional]
retry_max_delay_secs int [optional]
timeout_secs int [optional]

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]