Skip to content

Commit

Permalink
Avoid cancelling running jobs of all projects (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
my8100 authored and Digenis committed Jun 25, 2019
1 parent 3ff7c1c commit 4520c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapyd/webservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def render_POST(self, txrequest):
prevstate = "pending"
spiders = self.root.launcher.processes.values()
for s in spiders:
if s.job == jobid:
if s.project == project and s.job == jobid:
s.transport.signalProcess(signal)
prevstate = "running"
return {"node_name": self.root.nodename, "status": "ok", "prevstate": prevstate}
Expand Down

0 comments on commit 4520c45

Please sign in to comment.