Struct prefect::JobBuilder

source ·
pub struct JobBuilder { /* private fields */ }
Expand description

A builder for a job to submit to the queue.

Implementations

Create a new job builder.

Set the priority of the job.

Set the weight of the job.

Set the time at which the job should run.

Set the payload of the job.

Serialize the payload of the job using serde_json.

Configure all of the retry behavior of the job.

Set the maximum number of retries for the job.

Set the initial backoff interval for the job. See Retries::backoff_initial_interval for more details

Set the backoff multiplier for the job. See Retries::backoff_multiplier for more details

Set the backoff randomization factor for the job. See Retries::backoff_randomization for more details

Set the timeout of the job.

Set the heartbeat increment of the job.

Build the job.

Build the job and add it to a Queue.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more