Table of Contents

Interface IAppJobExecutionContext

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.Abstractions.dll
public interface IAppJobExecutionContext

Properties

DeploymentId

The deployment id in which this job was submitted

long DeploymentId { get; }

Property Value

long

JobId

The current job id

Guid JobId { get; }

Property Value

Guid

Progress

Update the progress percentage of this job

int Progress { set; }

Property Value

int

Queue

The job queue name

string Queue { get; }

Property Value

string

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

int

Status

Update the progress status of this job

string Status { set; }

Property Value

string

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

exception Exception
message string

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