コード例 #1
0
ファイル: tasks.py プロジェクト: RegioHelden/django-datawatch
def django_datawatch_run(slug,
                         identifier,
                         user_forced_refresh=False,
                         *args,
                         **kwargs):
    logger.debug('running check %s for identifier %s (forced refresh %s)',
                 slug, identifier, user_forced_refresh)
    synchronous.Backend().run(slug=slug,
                              identifier=identifier,
                              user_forced_refresh=user_forced_refresh)
コード例 #2
0
ファイル: tasks.py プロジェクト: RegioHelden/django-datawatch
def django_datawatch_enqueue(slug, *args, **kwargs):
    logger.debug('enqueuing checks for %s', slug)
    synchronous.Backend().enqueue(slug=slug)
コード例 #3
0
ファイル: tasks.py プロジェクト: RegioHelden/django-datawatch
def django_datawatch_refresh(slug, *args, **kwargs):
    logger.debug('refreshing check results for %s', slug)
    synchronous.Backend().refresh(slug=slug)
コード例 #4
0
def django_datawatch_run(slug, identifier, *args, **kwargs):
    logger.debug('running check %s for identifier %s', slug, identifier)
    synchronous.Backend().run(slug, identifier)