Interface IAppJobExecutionContext
public interface IAppJobExecutionContext
Properties
DeploymentId
The deployment id in which this job was submitted
long DeploymentId { get; }
Property Value
JobId
The current job id
Guid JobId { get; }
Property Value
Progress
Update the progress percentage of this job
int Progress { set; }
Property Value
Queue
The job queue name
string Queue { get; }
Property Value
Result
Set the result of this job (if any)
object Result { get; set; }
Property Value
- object
RunCount
How many times the job has (successfully) run
int RunCount { get; }
Property Value
Status
Update the progress status of this job
string Status { set; }
Property Value
Methods
Cancel()
Cancel job
void Cancel()
Cancel(string)
Cancel job
void Cancel(string message)
Parameters
message
string
Faulted(Exception)
Mark the job as Faulted (Glow will not retry job)
void Faulted(Exception exception)
Parameters
exception
Exception
Faulted(Exception, string)
Mark the job as Faulted (Glow will not retry job)
void Faulted(Exception exception, string message)
Parameters
Faulted(string)
Mark the job as Faulted (Glow will not retry job)
void Faulted(string message)
Parameters
message
string
Reschedule(DateTimeOffset)
Reschedule the job to run at the specified time.
void Reschedule(DateTimeOffset runAtTime)
Parameters
runAtTime
DateTimeOffset
Reschedule(TimeSpan)
Reschedule the job to run after some time from now.
void Reschedule(TimeSpan timespan)
Parameters
timespan
TimeSpan