Example #1
0
    def get_context(self):
        worker_name = self.get_variables_context().get('WORKER_NAME')
        queues = Worker.get(name=worker_name).queues

        return {
            'queues': queues,
            'queue_names': sorted(map(lambda x: x.name, queues))
        }
Example #2
0
 def get_context(self):
     return {'workers': Worker.all()}