add flower view (#4078)

pull/4081/head
Eric_Lee 2020-06-04 15:10:02 +08:00 committed by GitHub
parent e6cd126045
commit dbcf785e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,8 @@ api_v2 = [
app_view_patterns = [
path('auth/', include('authentication.urls.view_urls'), name='auth'),
path('ops/', include('ops.urls.view_urls'), name='ops')
path('ops/', include('ops.urls.view_urls'), name='ops'),
re_path(r'flower/(?P<path>.*)', views.celery_flower_view, name='flower-view'),
]

2
jms
View File

@ -251,7 +251,7 @@ def get_start_flower_kwargs():
'celery', 'flower',
'-A', 'ops',
'-l', 'INFO',
'--url_prefix=flower',
'--url_prefix=/core/flower',
'--auto_refresh=False',
'--max_tasks=1000',
'--tasks_columns=uuid,name,args,state,received,started,runtime,worker'