Commit f1f3f45c authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

noded: Get job queue lock while purging queue content

Only one process should modify the queue at the same time.

Reviewed-by: iustinp
parent 26a61f87
......@@ -563,6 +563,7 @@ class NodeDaemonRequestHandler(http.HTTPRequestHandler):
return backend.JobQueueUpdate(file_name, content)
@staticmethod
@_RequireJobQueueLock
def perspective_jobqueue_purge(params):
"""Purge job queue.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment