Example #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,
         })
Example #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
         })
Example #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
         }
     )
Example #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
Example #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
Example #6
0
 def _setup_config_manager(self):
     return get_config_manager(
         jobs=
         'socorro.cron.jobs.elasticsearch_cleanup.ElasticsearchCleanupCronApp|30d'
     )
 def _setup_config_manager(self):
     return get_config_manager(
         jobs='socorro.cron.jobs.elasticsearch_cleanup.ElasticsearchCleanupCronApp|30d'
     )
Example #8
0
 def _setup_config_manager(self):
     return get_config_manager(
         jobs=
         'socorro.cron.jobs.update_signatures.UpdateSignaturesCronApp|1h')
Example #9
0
 def _setup_config_manager(self):
     return get_config_manager(
         jobs='socorro.cron.jobs.update_signatures.UpdateSignaturesCronApp|1h'
     )