@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class SchedulerAgent extends java.lang.Object
Implements the scheduler execution logic. Each worker deploy an instance of this class to process the tasks submitted by driver nextflow application
| Modifiers | Name | Description |
|---|---|---|
static class |
SchedulerAgent.MatchingResources |
Predicate that scans all tasks whose resource request match the ones available in the scheduler agent |
| Constructor and description |
|---|
SchedulerAgent
(org.apache.ignite.Ignite ignite, nextflow.util.ClusterConfig config, java.util.UUID masterId = null)Initialise the scheduler agent |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
close(boolean shutdownIgnite = false)Shutdown the scheduler agent |
|
SchedulerAgent |
run()Launch the scheduler agent execution logic. |
| 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() |
Initialise the scheduler agent
ignite - The org.apache.ignite.Ignite instanceconfig - The nextflow.util.ClusterConfig instanceShutdown the scheduler agent
Launch the scheduler agent execution logic. It checks for task in the pendingTasks distributed cached, pick the ones which resources match the avail ones and execute them.