Add task scheduling URLs
This commit is contained in:
@@ -122,6 +122,18 @@ urlpatterns = [
|
||||
name='tasks',
|
||||
),
|
||||
|
||||
path(
|
||||
'task/<int:pk>/schedule/now',
|
||||
TasksView.as_view(),
|
||||
name='run-task',
|
||||
),
|
||||
|
||||
path(
|
||||
'task/<int:pk>/schedule/<int:timestamp>',
|
||||
TasksView.as_view(),
|
||||
name='schedule-task',
|
||||
),
|
||||
|
||||
path(
|
||||
'tasks-completed',
|
||||
CompletedTasksView.as_view(),
|
||||
|
||||
Reference in New Issue
Block a user