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

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

src/n/o/notifier-HEAD/notifier/management/commands/scheduler.py   notifier(Download)
def digest_job():
    do_forums_digests.delay()
 
class Command(BaseCommand):
 

src/n/o/notifier-HEAD/notifier/tests/test_tasks.py   notifier(Download)
            patch('notifier.tasks._time_slice', return_value=(dt1, dt2))
        ) as (p, t, ts):
            task_result = do_forums_digests.delay()
            self.assertTrue(task_result.successful())
            self.assertEqual(t.delay.call_count, 2)
        ) as (p, t):
            try:
                task_result = do_forums_digests.delay()
            except UserServiceException as e:
                self.assertEqual(p.call_count, settings.DAILY_TASK_MAX_RETRIES + 1)