Commit 5f540ca6 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

fix bug with kwargs arguments

parent 23e32e55
......@@ -21,7 +21,7 @@ class Service:
def run_job(self, job):
job = Job.objects.get(pk=job)
uuid = self.api.schedule('exa', job.spider.sp_name)
uuid = self.api.schedule('exa', job.spider.sp_name, query=job.query)
job.job_uuid = uuid
job.start_time = datetime.now()
job.status = 'RUN'
......@@ -52,7 +52,7 @@ class Service:
def restart_job(self, job):
job = Job.objects.get(pk=job)
uuid = self.api.schedule('exa', job.spider.sp_name)
uuid = self.api.schedule('exa', job.spider.sp_name, query=job.query)
job.job_uuid = uuid
job.start_time = datetime.now()
job.end_time = None
......
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