io.digdag.spi.TaskQueueClient Maven / Gradle / Ivy
package io.digdag.spi;
import java.util.List;
public interface TaskQueueClient
{
List lockSharedAgentTasks(int count, String agentId, int lockSeconds, long maxSleepMillis);
// TODO multi-queue is not implemented yet.
// List lockAgentBoundTasks(int queueId)
default void interruptLocalWait()
{ }
List taskHeartbeat(int siteId, List lockedIds, String agentId, int lockSeconds);
}