Ejemplo n.º 1
0
    def declare_queues(self, queues):
        from r2.config.queues import MessageQueue

        queues.declare({
            "robin_presence_q": MessageQueue(),
            "robin_waitinglist_q": MessageQueue(bind_to_self=True),
            "robin_subreddit_maker_q": MessageQueue(bind_to_self=True),
        })

        queues.robin_presence_q << (
            "websocket.connect",
            "websocket.disconnect",
        )
Ejemplo n.º 2
0
    def declare_queues(self, queues):
        from r2.config.queues import MessageQueue
        from reddit_dfp import queue

        queues.declare({
            queue.DFP_QUEUE: MessageQueue(bind_to_self=True),
        })
Ejemplo n.º 3
0
    def declare_queues(self, queues):
        from r2.config.queues import MessageQueue
        queues.declare({
            "liveupdate_scraper_q": MessageQueue(bind_to_self=True),
        })

        queues.liveupdate_scraper_q << ("new_liveupdate_update", )
Ejemplo n.º 4
0
    def declare_queues(self, queues):
        # imported here so we don't depend on pyx files at import time
        # which allows "make" to work in a clean clone of the repos
        from r2.config.queues import MessageQueue

        queues.declare({
            "steam_q": MessageQueue(bind_to_self=True),
        })
Ejemplo n.º 5
0
    def declare_queues(self, queues):
        from r2.config.queues import MessageQueue
        queues.declare({
            "buttonflair_q": MessageQueue(),
        })

        queues.buttonflair_q << (
            "new_comment",
            "new_link",
        )
Ejemplo n.º 6
0
 def declare_queues(self, queues):
     from r2.config.queues import MessageQueue
     queues.declare({
         "adzerk_q": MessageQueue(bind_to_self=True),
         "adzerk_reporting_q": MessageQueue(bind_to_self=True),
     })