Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/d/j/django-background-task-HEAD/background_task/management/commands/process_tasks.py   django-background-task(Download)
 
        while (duration <= 0) or (time.time() - start_time) <= duration:
            if not tasks.run_next_task():
                logging.debug('waiting for tasks')
                time.sleep(sleep)