Implements the scheduler controller logic
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
cancelTask(nextflow.processor.TaskId taskId)Cancel the execution of a task |
|
boolean |
checkTaskCompleted(nextflow.processor.TaskId taskId)Check if the task with the specified id has completed |
|
boolean |
checkTaskFailed(nextflow.processor.TaskId taskId) |
|
boolean |
checkTaskStarted(nextflow.processor.TaskId taskId)Check if the task with the specified id has started |
|
java.lang.String |
dumpScheduledTasksStatus() |
|
Scheduler |
init(org.apache.ignite.Ignite ignite, nextflow.processor.TaskPollingMonitor monitor)Initialize the scheduler instance |
|
void |
registerAutoscaler(Autoscaler autoscaler) |
|
TaskHolder |
removeTaskCompleted(nextflow.processor.TaskId taskId)Get the task runtime information and remove from the scheduledTasks structure |
|
void |
schedule(IgBaseTask... tasks)Schedule one or more tasks for execution. |
|
void |
shutdownRemoteAgents()Shutdown scheduler remote agents by sending a Protocol.TOPIC_AGENT_EVENTS message |
|
void |
shutdownScheduler()Shutdown the scheduler object |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Cancel the execution of a task
taskId - The nextflow.processor.TaskId ID of the task execution to cancelCheck if the task with the specified id has completed
taskId - The task identifiertrue if the task has completed, or false otherwiseCheck if the task with the specified id has started
taskId - The task identifiertrue if the task has started, or false otherwiseInitialize the scheduler instance
ignite - An org.apache.ignite.Ignite instancemonitor - A nextflow.processor.TaskPollingMonitor instanceGet the task runtime information and remove from the scheduledTasks structure
taskId - The id of the task to retrievenull if the task is not availableSchedule one or more tasks for execution. Each IgBaseTask object is added to the pendingTasks distributed cache from where it will be picked from a remote scheduler agent to be processed
tasks - One or more IgBaseTask instancesShutdown scheduler remote agents by sending a Protocol.TOPIC_AGENT_EVENTS message
Shutdown the scheduler object