Skip to content

ILocalDurableJobManager Methods

Provides functionality for scheduling and managing jobs on the local silo.

ScheduleJobAsync(ScheduleJobRequest, CancellationToken)

abstract
public abstract Task<DurableJob> ScheduleJobAsync(ScheduleJobRequest request, CancellationToken cancellationToken)
Schedules a job to be executed at a specific time on the target grain.

Parameters

requestScheduleJobRequest
The request containing the job scheduling parameters.
cancellationTokenCancellationToken
A cancellation token to cancel the operation.

Returns

A System.Threading.Tasks.Task representing the asynchronous operation that returns the durable job.

TryCancelDurableJobAsync(DurableJob, CancellationToken)

abstract
public abstract Task<bool> TryCancelDurableJobAsync(DurableJob job, CancellationToken cancellationToken)
Attempts to cancel a previously scheduled durable job.

Parameters

jobDurableJob
The durable job to cancel.
cancellationTokenCancellationToken
A cancellation token to cancel the operation.

Returns

A System.Threading.Tasks.Task representing the asynchronous operation that returns true if the job was successfully canceled; otherwise, false.