Assign task to executor #10

Closed
opened 2021-10-07 14:40:35 +00:00 by reynisson · 0 comments
reynisson commented 2021-10-07 14:40:35 +00:00 (Migrated from github.com)

Acceptance criteria:

  • Implement the ApplyForTask REST call that takes as parameters: Task type, Executor IP, Executor Port
    • Pop the first task having the Task type off the task queue
      • If the task queue has such a task, then add the task-executor assignment to the roster
        • And return a success message containing the Task ID, Task type, Task options to the executor
        • And message the task list via AssignTask that the Task ID is being executed
      • If there is no such task on the task queue then return a NoTaskFound message
**Acceptance criteria:** - [x] Implement the ApplyForTask REST call that takes as parameters: _Task type, Executor IP, Executor Port_ - [x] Pop the first task having the _Task type_ off the task queue - [x] If the task queue has such a task, then add the task-executor assignment to the roster - [x] And return a success message containing the _Task ID, Task type, Task options_ to the executor - [x] And message the task list via AssignTask that the _Task ID_ is being executed - [x] If there is no such task on the task queue then return a NoTaskFound message
Sign in to join this conversation.
No description provided.