Ejemplo n.º 1
0
def main():
    utils.set_task_queue_module('default')
    apps = (
        handlers_endpoints.create_endpoints_app(),
        handlers_cron.create_cron_app(),
        handlers_frontend.create_frontend_app(),
        handlers_queues.create_queues_app(),
    )
    for app in apps:
        gae_ts_mon.initialize(app=app, is_enabled_fn=is_enabled_callback)
    return apps
Ejemplo n.º 2
0
def main():
    utils.set_task_queue_module('default')
    apps = (
        handlers_endpoints.create_endpoints_app(),
        handlers_frontend.create_frontend_app(),
        handlers_cron.create_cron_app(),
        handlers_queues.create_queues_app(),
    )
    for app in apps[1:]:
        # Not callable on endpoints app
        gae_ts_mon.initialize(app=app, is_enabled_fn=is_enabled_callback)
    gae_event_mon.initialize('gce-backend')
    metrics.initialize()
    return apps
Ejemplo n.º 3
0
 def setUp(self):
   super(LeaseRequestFulfillerTest, self).setUp()
   app = handlers_queues.create_queues_app()
   self.app = webtest.TestApp(app)
Ejemplo n.º 4
0
# Copyright 2015 The Swarming Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
"""Handlers for HTTP requests."""

from components import utils

import handlers_cron
import handlers_pubsub
import handlers_queues

utils.set_task_queue_module('default')

cron_app = handlers_cron.create_cron_app()
pubsub_app = handlers_pubsub.create_pubsub_app()
queues_app = handlers_queues.create_queues_app()
Ejemplo n.º 5
0
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.

"""Handlers for HTTP requests."""

from components import utils

import handlers_cron
import handlers_queues


utils.set_task_queue_module('default')

cron_app = handlers_cron.create_cron_app()
queues_app = handlers_queues.create_queues_app()