<s> from __future__ import absolute_import <EOL> import os <EOL> from tornado . web import StaticFileHandler , url <EOL> from . api import events <EOL> from . api import control <EOL> from . api import tasks <EOL> from . api import workers <EOL> from . views import auth <EOL> from . views import monitor <EOL> from . views . broker import BrokerView <EOL> from . views . workers import WorkerView <EOL> from . views . tasks import TaskView , TasksView , TasksDataTable <EOL> from . views . error import NotFoundErrorHandler <EOL> from . views . dashboard import DashboardView , DashboardUpdateHandler <EOL> from . utils import gen_cookie_secret <EOL> settings = dict ( <EOL> template_path = os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) , <EOL> static_path = os . path . join ( os . path . dirname ( __file__ ) , "<STR_LIT>" ) , <EOL> cookie_secret = gen_cookie_secret ( ) , <EOL> static_url_prefix = '<STR_LIT>' , <EOL> login_url = '<STR_LIT>' , <EOL> ) <EOL> handlers = [ <EOL> url ( r"<STR_LIT:/>" , DashboardView , name = '<STR_LIT>' ) , <EOL> url ( r"<STR_LIT>" , DashboardView , name = '<STR_LIT>' ) , <EOL> url ( r"<STR_LIT>" , WorkerView , name = '<STR_LIT>' ) , <EOL> url ( r"<STR_LIT>" , TaskView , name = '<STR_LIT>' ) , <EOL> url ( r"<STR_LIT>" , TasksView , name = '<STR_LIT>' ) , <EOL> url ( r"<STR_LIT>" , TasksDataTable ) , <EOL> url ( r"<STR_LIT>" , BrokerView , name = '<STR_LIT>' ) , <EOL> ( r"<STR_LIT>" , workers . ListWorkers ) , <EOL> ( r"<STR_LIT>" , control . WorkerShutDown ) , <EOL> ( r"<STR_LIT>" , control . WorkerPoolRestart ) , <EOL> ( r"<STR_LIT>" , control . WorkerPoolGrow ) , <EOL> ( r"<STR_LIT>" , control . WorkerPoolShrink ) , <EOL> ( r"<STR_LIT>" , control . WorkerPoolAutoscale ) , <EOL> ( r"<STR_LIT>" , control . WorkerQueueAddConsumer ) , <EOL> ( r"<STR_LIT>" , <EOL> control . WorkerQueueCancelConsumer ) , <EOL> ( r"<STR_LIT>" , tasks . ListTasks ) , <EOL> ( r"<STR_LIT>" , tasks . ListTaskTypes ) , <EOL> ( r"<STR_LIT>" , tasks . GetQueueLengths ) , <EOL> ( r"<STR_LIT>" , tasks . TaskInfo ) , <EOL> ( r"<STR_LIT>" , tasks . TaskApply ) , <EOL> ( r"<STR_LIT>" , tasks . TaskAsyncApply ) , <EOL> ( r"<STR_LIT>" , tasks . TaskSend ) , <EOL> ( r"<STR_LIT>" , tasks . TaskResult ) , <EOL> ( r"<STR_LIT>" , tasks . TaskAbort ) , <EOL> ( r"<STR_LIT>" , control . TaskTimout ) , <EOL> ( r"<STR_LIT>" , control . TaskRateLimit ) , <EOL> ( r"<STR_LIT>" , control . TaskRevoke ) , <EOL> ( r"<STR_LIT>" , events . TaskSent ) , <EOL> ( r"<STR_LIT>" , events . TaskReceived ) , <EOL> ( r"<STR_LIT>" , events . TaskStarted ) , <EOL> ( r"<STR_LIT>" , events . TaskSucceeded ) , <EOL> ( r"<STR_LIT>" , events . TaskFailed ) , <EOL> ( r"<STR_LIT>" , events . TaskRevoked ) , <EOL> ( r"<STR_LIT>" , events . TaskRetried ) , <EOL> ( r"<STR_LIT>" , events . TaskCustom ) , <EOL> ( r"<STR_LIT>" , DashboardUpdateHandler ) , <EOL> url ( r"<STR_LIT>" , monitor . Monitor , name = '<STR_LIT>' ) , <EOL> ( r"<STR_LIT>" , monitor . SucceededTaskMonitor ) , <EOL> ( r"<STR_LIT>" , monitor . FailedTaskMonitor ) , <EOL> ( r"<STR_LIT>" , monitor . TimeToCompletionMonitor ) , <EOL> ( r"<STR_LIT>" , monitor . BrokerMonitor ) , <EOL> ( r"<STR_LIT>" , StaticFileHandler , <EOL> { "<STR_LIT:path>" : settings [ '<STR_LIT>' ] } ) , <EOL> ( r"<STR_LIT>" , auth . LoginHandler ) , <EOL> ( r"<STR_LIT>" , auth . LogoutHandler ) , <EOL> ( r"<STR_LIT>" , NotFoundErrorHandler ) , <EOL> ] </s>
