Skip to content
Tracon

JobScheduleSaveRequest

Namespace Tracon · Assembly Tracon.AspNetCore.dll

Request to create/update a schedule.

public sealed record JobScheduleSaveRequest : IEquatable<JobScheduleSaveRequest>

objectJobScheduleSaveRequest

IEquatable<JobScheduleSaveRequest>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

The name comes from the path, not the body — same reason as WorkflowSaveRequest.

public JobScheduleSaveRequest()

Five-field cron expression. If left empty, the schedule can only be triggered manually (POST .../trigger).

public string? Cron { get; init; }

string?

Whether the schedule is enabled.

public bool Enabled { get; init; }

bool

Key of the handler the jobs this schedule produces run on. See JobHandlerKeys.

public required string HandlerKey { get; init; }

string

Only a key listed in TraconSchedulingOptions.HttpSchedulableHandlerKeys is accepted; left empty, that list means Tracon’s own built-in keys. Making a consumer’s key schedulable over HTTP is a deliberate opt-in.

The lane the jobs this schedule produces run in. See JobLanes. Left empty, the jobs run in JobLanes.Default (or whatever TraconSchedulingOptions.LaneByHandlerKey maps JobScheduleSaveRequest.HandlerKey to).

public string? Lane { get; init; }

string?

Input set or parameters.

public JsonElement Payload { get; init; }

JsonElement

Name of the agent or workflow to run.

public required string TargetName { get; init; }

string

Time zone the Cron expression is interpreted in.

public string TimeZone { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(JobScheduleSaveRequest? other)

other JobScheduleSaveRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(JobScheduleSaveRequest?, JobScheduleSaveRequest?)

Section titled “ operator ==(JobScheduleSaveRequest?, JobScheduleSaveRequest?)”
public static bool operator ==(JobScheduleSaveRequest? left, JobScheduleSaveRequest? right)

left JobScheduleSaveRequest?

right JobScheduleSaveRequest?

bool

operator !=(JobScheduleSaveRequest?, JobScheduleSaveRequest?)

Section titled “ operator !=(JobScheduleSaveRequest?, JobScheduleSaveRequest?)”
public static bool operator !=(JobScheduleSaveRequest? left, JobScheduleSaveRequest? right)

left JobScheduleSaveRequest?

right JobScheduleSaveRequest?

bool