Interface SchedulerCreator


  • public interface SchedulerCreator
    Creator for instances of Scheduler.
    • Method Detail

      • createScheduler

        ConnectorResponse createScheduler()
        Creates a new scheduler instance.
        Returns:
        a response with the code OK if the creation was successful, otherwise a response with an error code and an error message
      • getInstance

        static SchedulerCreator getInstance​(Session session)
        Gets a new instance of the default scheduler creator implementation.

        Default implementation of the creator uses:

        The default scheduler creation process consists of:

        • creation of STATE.SCHEDULER_TASK task
        • granting of MONITOR task privilege to the ADMIN application role
        • resumption of the task
        Parameters:
        session - Snowpark session object
        Returns:
        a new creator instance