def init_runner(context: Context, run_by: str) -> typing.Callable: setup_logging(context.config["DEBUG"]) sentry_sdk.init(dsn=context.config.get("SENTRY_DSN")) def runner() -> None: store = TaeinStore(context.config) store.run(run_by) return runner
def init_runner(context: Context, run_by: str) -> typing.Callable: setup_logging(context.config["DEBUG"]) sentry_sdk.init( dsn=context.config.get("SENTRY_DSN"), environment=context.config["ENVIRONMENT"], integrations=[ # Disable default-integrated log integration LoggingIntegration(event_level=None, level=None), ], ) def runner() -> None: crawler = NsdiCrawler(context.config) crawler.run(run_by) return runner
def init_runner(context: Context, run_by: str) -> typing.Callable: setup_logging(context.config["DEBUG"]) sentry_sdk.init( dsn=context.config.get("SENTRY_DSN"), environment=context.config["ENVIRONMENT"], integrations=[ SqlalchemyIntegration(), # Disable default-integrated log integration LoggingIntegration(event_level=None, level=None), ], ) def runner() -> None: store = InfocareStore(context.config) store.run(run_by) return runner