Skip to content

Commit

Permalink
Add AIRFLOW_NUMBER_OF_WORKERS env config
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainOfHacks committed Sep 8, 2023
1 parent 56a8152 commit 9cc2aab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ted_sws/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,16 @@ def S3_PUBLISH_ENABLED(self, config_value: str) -> bool:
return config_value.lower() in ["1", "true"]


class AirflowConfig:

@env_property(config_resolver_class=AirflowAndEnvConfigResolver, default_value="4")
def AIRFLOW_NUMBER_OF_WORKERS(self, config_value: str) -> int:
return int(config_value)


class TedConfigResolver(MongoDBConfig, RMLMapperConfig, XMLProcessorConfig, ELKConfig, LoggingConfig,
GitHubArtefacts, API, AllegroConfig, TedAPIConfig, SFTPConfig, FusekiConfig,
SPARQLConfig, LimesAlignmentConfig, S3PublishConfig):
SPARQLConfig, LimesAlignmentConfig, S3PublishConfig, AirflowConfig):
"""
This class resolve the secrets of the ted-sws project.
"""
Expand Down

0 comments on commit 9cc2aab

Please sign in to comment.