The unique id for this execution. Guaranteed to be unique.
The Job for which this execution has been created.
The SchedulingContext for which this execution has been created.
The execution streams are scoped stdout, stderr for the execution.
The available ExecutionPlatforms for this execution.
The scoped scala.concurrent.ExecutionContext
for this execution.
Cancels this Execution.
Cancels this Execution. Note that cancelling an execution does not forcibly stop the SideEffect function if it has already started. It will just call the CancellationListener so the user code can gracefully shutdown if it handles cancellation properly. Note that the provided ExecutionPlatforms handle cancellation properly, so for SideEffect that use the provided platforms they support cancellation out of the box.
The user who asked for the cancellation (either from the UI or the private API).
The SchedulingContext for which this execution has been created.
The scoped scala.concurrent.ExecutionContext
for this execution.
The unique id for this execution.
The unique id for this execution. Guaranteed to be unique.
Returns true
if this Execution has been cancelled.
The Job for which this execution has been created.
Attach a CancellationListener that will be called id this Execution is cancelled.
Attach a CancellationListener that will be called id this Execution is cancelled.
The callback function to be called.
Park this execution for the provided duration.
Park this execution for the provided duration. After the duration
the returned Future
will complete allowing the SideEffect to resume.
During this time, the Execution will be seen as WAITING in the UI and the API.
The available ExecutionPlatforms for this execution.
Run this execution on its job.
The execution streams are scoped stdout, stderr for the execution.
Synchronize a code block over a lock.
Synchronize a code block over a lock. If several SideEffect functions need to race
for a shared thread unsafe resource, they can use this helper function to ensure that only
one code block will run at once. Think about it as an asynchronous synchronized
helper.
While waiting for the lock, the Execution will be seen as WAITING in the UI and the API.
Allows up to concurrencyLimit
concurrent executions of a code block over a lock.
Allows up to concurrencyLimit
concurrent executions of a code block over a lock. If
severalSideEffect functions need to race for a shared thread unsafe resource,
they can use this helper function to ensure that at most concurrencyLimit
code
blocks will run at once. Think about it as an asynchronous Semaphore
helper.
While waiting for the lock, the Execution will be seen as WAITING in the UI and the API.
Executions are created by the Scheduler.
The unique id for this execution. Guaranteed to be unique.
The Job for which this execution has been created.
The SchedulingContext for which this execution has been created.
The execution streams are scoped stdout, stderr for the execution.
The available ExecutionPlatforms for this execution.
The scoped
scala.concurrent.ExecutionContext
for this execution.