@PublicApi
public interface JobRunnerRequest
| Modifier and Type | Method and Description |
|---|---|
JobConfig |
getJobConfig()
Returns the job's configuration, such as its schedule and parameters.
|
JobId |
getJobId()
Returns the job ID that was used to schedule this job.
|
Date |
getStartTime()
Returns the time at which the job was started.
|
boolean |
isCancellationRequested()
Returns
true if the job runner should terminate its activities as gracefully as possible
and exit; false to continue running normally. |
@Nonnull Date getStartTime()
RunDetails that stores the
result will use this exact time for RunDetails.getStartTime().@Nonnull JobId getJobId()
@Nonnull JobConfig getJobConfig()
boolean isCancellationRequested()
true if the job runner should terminate its activities as gracefully as possible
and exit; false to continue running normally.
Job cancellation is entirely cooperative. If a job is likely to take longer than a few seconds to complete its work, then it should periodically check this value and react to it. Normally, cancellation is requested because the application is trying to shut down, and continuing to run after this flag has been set increases the chance that the system administrator will grow impatient and forcibly kill the application.
true if cancellation is requested; false otherwiseCopyright © 2017 Atlassian. All rights reserved.