mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-05-14 10:43:56 +00:00
* [Update] 修改command Post导致的output错误和定时任务创建问题 * [Update] 修改celery 日志 * [Update] 修改task日志方式 * [Update] 修改Docker file
19 lines
495 B
Python
19 lines
495 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
from django.views.generic import DetailView, TemplateView
|
|
|
|
from common.permissions import AdminUserRequiredMixin
|
|
from ..models import CeleryTask
|
|
|
|
|
|
__all__ = ['CeleryTaskLogView']
|
|
|
|
|
|
class CeleryTaskLogView(AdminUserRequiredMixin, TemplateView):
|
|
template_name = 'ops/celery_task_log.html'
|
|
|
|
def get_context_data(self, **kwargs):
|
|
context = super().get_context_data(**kwargs)
|
|
context.update({'task_id': self.kwargs.get('pk')})
|
|
return context
|