File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
src/labthings/default_views Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 10
10
class TaskList (View ):
11
11
"""List of all background actions from the session"""
12
12
13
+ logging .warning (
14
+ "TaskList is deprecated and will be removed in a future version. Use the Actions list instead."
15
+ )
16
+
13
17
def get (self ):
14
- """ """
15
- logging .warning (
16
- "TaskList is deprecated and will be removed in a future version. Use the Actions list instead."
17
- )
18
18
return TaskSchema (many = True ).dump (current_labthing ().actions .threads )
19
19
20
20
@@ -23,10 +23,12 @@ class TaskView(View):
23
23
24
24
GET will safely return the current task progress.
25
25
DELETE will terminate the background task, if running.
26
-
27
-
28
26
"""
29
27
28
+ logging .warning (
29
+ "TaskList is deprecated and will be removed in a future version. Use the Actions list instead."
30
+ )
31
+
30
32
def get (self , task_id ):
31
33
"""Show status of a session task
32
34
@@ -35,9 +37,6 @@ def get(self, task_id):
35
37
:param task_id:
36
38
37
39
"""
38
- logging .warning (
39
- "TaskView is deprecated and will be removed in a future version. Use the Action view instead."
40
- )
41
40
task_dict = current_labthing ().actions .to_dict ()
42
41
43
42
if task_id not in task_dict :
@@ -55,9 +54,7 @@ def delete(self, task_id):
55
54
:param task_id:
56
55
57
56
"""
58
- logging .warning (
59
- "TaskView is deprecated and will be removed in a future version. Use the Action view instead."
60
- )
57
+
61
58
task_dict = current_labthing ().actions .to_dict ()
62
59
63
60
if task_id not in task_dict :
You can’t perform that action at this time.
0 commit comments