def get(self,request): instance = CeleryClient() response = instance.active_tasks() if not response: return HttpResponse(json.dumps([]),content_type="application/json") else: return HttpResponse(json.dumps(response),content_type="application/json")
def get(self,request): instance = CeleryClient() stats = instance.worker_stats active_tasks=instance.active_tasks() reserved_tasks=instance.reserved_tasks() revoked_tasks=instance.revoked_tasks() scheduled_tasks=instance.scheduled_tasks() return render_to_response('monitor/worker_status.html',locals())
def get(self,request): instance = CeleryClient() response = instance.active_tasks() title = 'Active Tasks' action = 'terminate' return render_to_response('monitor/active_tasks.html',locals())