Interface AgentIdleTasks


  • public interface AgentIdleTasks
    Maintains a collection of tasks which should be executed when agent becomes idle, i.e. it does not run any builds.
    Since:
    9.1
    • Method Detail

      • addRecurringTask

        void addRecurringTask​(@NotNull
                              AgentIdleTasks.Task task)
        Adds new task which should be executed periodically when agent becomes idle. If there is another task with the same name, it will be replaced with new task.
        Parameters:
        task - the task to execute
      • removeRecurringTask

        @Nullable
        AgentIdleTasks.Task removeRecurringTask​(@NotNull
                                                java.lang.String taskName)
        Removes task with given name.
        Parameters:
        taskName - name of the task
        Returns:
        removed task or null