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

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

src/o/p/openblock-old-HEAD/obadmin/obadmin/admin/views.py   openblock-old(Download)
    use via AJAX.
    """
    pending = Task.objects.find_available()
    running = Task.objects.filter(locked_by__isnull=False)
    # if there are old jobs and nothing's running, tell user to run tasks

src/o/p/openblock-HEAD/obadmin/obadmin/admin/views.py   openblock(Download)
    use via AJAX.
    """
    pending = Task.objects.find_available()
    running = Task.objects.filter(locked_by__isnull=False)
    # if there are old jobs and nothing's running, tell user to run tasks

src/o/b/obadmin-1.2/obadmin/admin/views.py   obadmin(Download)
    use via AJAX.
    """
    pending = Task.objects.find_available()
    running = Task.objects.filter(locked_by__isnull=False)
    # if there are old jobs and nothing's running, tell user to run tasks

src/d/j/django-background-task-HEAD/background_task/tests.py   django-background-task(Download)
        failed_at_set_after_MAX_ATTEMPTS()
 
        available = Task.objects.find_available()
        self.assertEqual(1, available.count())
        task = available[0]
        self.failUnless(tasks.run_next_task())
 
        available = Task.objects.find_available()
        self.assertEqual(0, available.count())