Skip to content

Commit

Permalink
fix(middlewared/job): calling jobs in process pool
Browse files Browse the repository at this point in the history
  • Loading branch information
william-gr committed Mar 29, 2019
1 parent b9da08c commit 424f54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/job.py
Expand Up @@ -360,7 +360,7 @@ async def __run_body(self):
and return the result as a json
"""
if self.options.get('process'):
rv = await self.middleware._call_worker(self.serviceobj, self.method_name, *self.args, job={'id': self.id})
rv = await self.middleware._call_worker(self.method_name, *self.args, job={'id': self.id})
else:
# Make sure args are not altered during job run
args = copy.deepcopy(self.args)
Expand Down

0 comments on commit 424f54c

Please sign in to comment.