Skip to content
Snippets Groups Projects
Commit 21eb78da authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

In sopds_scanner replace directly call scan() to add_job

parent b7827472
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ class Command(BaseCommand):
if config.SOPDS_SCAN_START_DIRECTLY:
config.SOPDS_SCAN_START_DIRECTLY = False
self.stdout.write('Startup scannyng directly by SOPDS_SCAN_START_DIRECTLY flag.')
self.scan()
self.sched.add_job(self.scan, id='scan_directly')
def start(self):
writepid(self.pidfile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment