Skip to content

Commit

Permalink
Fix "Merge branch 'master' into sanitize-project"
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 18, 2024
1 parent 69dcf53 commit 72cdf5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scrapyd/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def render_POST(self, txrequest, project, job, signal):
if project not in self.root.poller.queues:
raise error.Error(code=http.NOT_FOUND, message=b"project '%b' not found" % project.encode())

prevstate = None

if self.root.poller.queues[project].remove(lambda x: x["_job"] == job):
prevstate = "pending"

Expand Down

0 comments on commit 72cdf5b

Please sign in to comment.