def rescan(): if 'rescan' not in config.RUNNING: rsc = Rescan(session, 'rescan') rsc.serialize = False config.slow_worker.add_task(None, 'Rescan', rsc.run)
def rescan(): if 'rescan' not in config._running: rsc = Rescan(session, 'rescan') rsc.serialize = False config.slow_worker.add_task(None, 'Rescan', rsc.run)
def rescan(): if "rescan" not in config.RUNNING: rsc = Rescan(session, "rescan") rsc.serialize = False config.slow_worker.add_task(None, "Rescan", rsc.run)
def rescan(): if 'rescan' not in config._running: rsc = Rescan(session, 'rescan') rsc.serialize = False config.slow_worker.add_task(session, 'Rescan', rsc.run)
def rescan(): if "rescan" not in config._running: rsc = Rescan(session, "rescan") rsc.serialize = False config.slow_worker.add_task(session, "Rescan", rsc.run)