Class SchedulerController

Assembly: redb.Tsak.Core.dll

Quartz scheduler management endpoints.
Mirrors lt.tsak RouteContainerController scheduler/ endpoints.

Every route context owns its Quartz scheduler (redb.Route's scheduler per context, as Apache Camel's per
CamelContext): the endpoints read the schedulers of every context of the node — this one included — and report
each job with its context. A job key is unique within its context only, so an action takes the context; without
it the key must be found in exactly one context, never guessed.

[Route("/api/scheduler")]
public class SchedulerController : RedbController

Inheritance

Object→RedbController→SchedulerController

Inherited Members

Methods

FireJob(string, string?)

Fires a job immediately (out of schedule) — the "run it now" operator button. Requires the

[HttpPost("/fire-job")]
[RequiresRole(new string[] { "operator" })]
public Task<object> FireJob(string jobKeyStr, string? context = null)

GetRunningJobs()

[HttpGet("/jobs")]
public Task<object> GetRunningJobs()

GetScheduledJobs()

[HttpGet("/scheduled")]
public Task<object> GetScheduledJobs()

GetStatus()

[HttpGet("/status")]
public Task<object> GetStatus()

PauseJob(string, string?)

[HttpPost("/pause-job")]
public Task<object> PauseJob(string jobKeyStr, string? context = null)

ResumeJob(string, string?)

[HttpPost("/resume-job")]
public Task<object> ResumeJob(string jobKeyStr, string? context = null)

Standby(string?)

Moves the scheduler of context, or of every context, to standby.

[HttpPost("/standby")]
public Task<object> Standby(string? context = null)

Start(string?)

Starts (or resumes from standby) the scheduler of context, or of every context.

[HttpPost("/start")]
public Task<object> Start(string? context = null)