All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.digdag.spi.TaskQueueServer Maven / Gradle / Ivy

package io.digdag.spi;

import java.util.List;
import java.util.function.Function;
import com.google.common.base.Optional;
import io.digdag.client.config.Config;

public interface TaskQueueServer
    extends TaskQueueClient
{
    // TODO multi-queue is not implemented yet.
    //   int createOrUpdateQueue(int queueId, Optional sharedSiteId, int maxConcurrency);
    //   void deleteQueueIfExists(int queueId);

    void enqueueDefaultQueueTask(int siteId, TaskQueueRequest request)
        throws TaskConflictException;

    void enqueueQueueBoundTask(int queueId, TaskQueueRequest request)
        throws TaskConflictException;

    void deleteTask(int siteId, String lockId, String agentId)
        throws TaskNotFoundException, TaskConflictException;

    boolean forceDeleteTask(String lockId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy