diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-12-19 12:39:01 -0500 |
---|---|---|
committer | Parker Berberian <pberberian@iol.unh.edu> | 2020-01-28 16:09:35 -0500 |
commit | 77377d5e9362bd35a3b300df231e82ee974675e1 (patch) | |
tree | 5e3799768eb887a0259c8c21ed61123cdde2d608 /src/dashboard/tasks.py | |
parent | 899e1a4baa95d0bc6f0eef34de66f0e257174878 (diff) |
Comments and Documentation
This change adds a ton of comments and documentation across all the code.
Change-Id: Ifee0a2f534e8584f14b0f13af4dda8dc70eb7553
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/dashboard/tasks.py')
-rw-r--r-- | src/dashboard/tasks.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dashboard/tasks.py b/src/dashboard/tasks.py index 71afed2..ac4d36f 100644 --- a/src/dashboard/tasks.py +++ b/src/dashboard/tasks.py @@ -88,9 +88,7 @@ def booking_poll(): @shared_task def free_hosts(): - """ - gets all hosts from the database that need to be freed and frees them - """ + """Free all hosts that should be freed.""" undone_statuses = [JobStatus.NEW, JobStatus.CURRENT, JobStatus.ERROR] undone_jobs = Job.objects.filter( hostnetworkrelation__status__in=undone_statuses, |