Пример #1
0
 def _setup_config_manager(self, days_into_past):
     return get_config_manager(
         jobs='socorro.cron.jobs.bugzilla.BugzillaCronApp|1d',
         overrides={
             'crontabber.class-BugzillaCronApp.days_into_past':
             days_into_past,
         })
Пример #2
0
 def _setup_config_manager(self):
     prefix = 'crontabber.class-VerifyProcessedCronApp'
     return get_config_manager(
         jobs='socorro.cron.jobs.verify_processed.VerifyProcessedCronApp|1d',
         overrides={
             prefix + '.crashstorage_class':
             'socorro.external.boto.crashstorage.BotoS3CrashStorage'  # noqa
         })
Пример #3
0
 def _setup_config_manager(self):
     prefix = 'crontabber.class-VerifyProcessedCronApp'
     return get_config_manager(
         jobs='socorro.cron.jobs.verify_processed.VerifyProcessedCronApp|1d',
         overrides={
             prefix + '.crashstorage_class': 'socorro.external.boto.crashstorage.BotoS3CrashStorage'  # noqa
         }
     )
Пример #4
0
def config():
    """Pytest fixture that returns config for ArchiveScraperCronApp"""
    # Configuration for crontabber jobs is buried in CrontabberApp, so we
    # create one of those and then extract the configuration that we want. It's
    # either that or we have to hard-code expanding all the configuration bits.
    config_manager = get_config_manager(
        jobs='socorro.cron.jobs.archivescraper.ArchiveScraperCronApp|1h',
        overrides={
            'crontabber.class-ArchiveScraperCronApp.base_url': HOST + '/pub/',
        }
    )
    with config_manager.context() as config:
        crontabberapp = CronTabberApp(config)
        class_config = crontabberapp.config.crontabber['class-ArchiveScraperCronApp']
        yield class_config
Пример #5
0
def config():
    """Pytest fixture that returns config for ArchiveScraperCronApp"""
    # Configuration for crontabber jobs is buried in CrontabberApp, so we
    # create one of those and then extract the configuration that we want. It's
    # either that or we have to hard-code expanding all the configuration bits.
    config_manager = get_config_manager(
        jobs='socorro.cron.jobs.archivescraper.ArchiveScraperCronApp|1h',
        overrides={
            'crontabber.class-ArchiveScraperCronApp.base_url': HOST + '/pub/',
            # Use 1 worker which keeps it synchronous and single-process
            'crontabber.class-ArchiveScraperCronApp.num_workers': 1,
        }
    )
    with config_manager.context() as config:
        crontabberapp = CronTabberApp(config)
        class_config = crontabberapp.config.crontabber['class-ArchiveScraperCronApp']
        yield class_config
Пример #6
0
 def _setup_config_manager(self):
     return get_config_manager(
         jobs=
         'socorro.cron.jobs.elasticsearch_cleanup.ElasticsearchCleanupCronApp|30d'
     )
Пример #7
0
 def _setup_config_manager(self):
     return get_config_manager(
         jobs='socorro.cron.jobs.elasticsearch_cleanup.ElasticsearchCleanupCronApp|30d'
     )
Пример #8
0
 def _setup_config_manager(self):
     return get_config_manager(
         jobs=
         'socorro.cron.jobs.update_signatures.UpdateSignaturesCronApp|1h')
Пример #9
0
 def _setup_config_manager(self):
     return get_config_manager(
         jobs='socorro.cron.jobs.update_signatures.UpdateSignaturesCronApp|1h'
     )