Skip to content

Commit

Permalink
removed the logic that was not used anymore (removed a hack)
Browse files Browse the repository at this point in the history
moved that code inside our custom launcher
  • Loading branch information
lorandcnd committed Dec 16, 2021
1 parent ffe8de5 commit b4c80e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scrapyd/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ def _spawn_process(self, message, slot):
args += get_crawl_args(msg)
e = self.app.getComponent(IEnvironment)
env = e.get_environment(msg, slot)
args += ['--logfile={}'.format(env['LOG_FILE'])]
env = native_stringify_dict(env, keys_only=False)
pp = ScrapyProcessProtocol(slot, project, msg['_spider'], \
msg['_job'], env)
pp = ScrapyProcessProtocol(slot, project, msg['_spider'], msg['_job'], env)
pp.deferred.addBoth(self._process_finished, slot)
reactor.spawnProcess(pp, sys.executable, args=args, env=env)
self.processes[slot] = pp
Expand Down

0 comments on commit b4c80e2

Please sign in to comment.