- All Known Implementing Classes:
public interface LabelAssignmentAction extends Action
Actionthat can be submitted to
Queuethat controls where the task runs.
Where to insert
If you control when the task gets submitted to the queue, you can associate this action to the task by passing it as a parameter to method like
Queue.schedule(Task, int, Action...).
If you want to globally affect the scheduling decision, you can do so by
Queue.QueueDecisionHandlerand alter the list of actions that you get. Alternatively, you can implement your own
LoadBalancerand bypass the whole label/assignment mechanism to control the decision into your own hands.
- Kohsuke Kawaguchi
getAssignedLabelReassigns where the task gets run.