Skip to content

Commit

Permalink
Added docstring to Task view class
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Mar 26, 2020
1 parent cdc8446 commit 30f04c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions labthings/server/views/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ def get(self):

@Tag(["properties", "tasks"])
class TaskView(View):
"""
Manage a particular background task.
GET will safely return the current task progress.
DELETE will terminate the background task, if running.
"""

@marshal_with(TaskSchema())
def get(self, task_id):
"""
Expand Down

0 comments on commit 30f04c6

Please sign in to comment.