Skip to content

Commit

Permalink
chore(sat): Update sat-etl pipeline (#1)
Browse files Browse the repository at this point in the history
* chore(sat): Update default_args name

* fix(worflows): Add xmlsec to branch workflow

* fix(workflow): Disable linting

* fix(pyproject): Pin python version

* fix(pyproject): Pin python correctly
  • Loading branch information
devsjc authored Mar 3, 2025
1 parent 22a0c40 commit fd99eb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/branch_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
uses: openclimatefix/.github/.github/workflows/nondefault_branch_push_ci_python.yml@main
secrets: inherit
with:
enable_linting: true
enable_linting: false
enable_typechecking: false
tests_folder: "tests"
tests_runner: "unittest"
tests_conda_deps: "xmlsec"

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "airflow-dags"
dynamic = ["version"] # Set automtically using git: https://setuptools-git-versioning.readthedocs.io/en/stable/
description = "Airflow DAGs for running Open Climate Fix's production pipelines"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.12.0"
requires-python = ">=3.12.0,<3.13"
license = {text = "MIT License"}
authors = [
{ name = "Open Climate Fix Team", email = "[email protected]" },
Expand Down
10 changes: 5 additions & 5 deletions src/airflow_dags/dags/uk/sat-dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

env = os.getenv("ENVIRONMENT", "development")

default_dag_args = {
default_args = {
"owner": "airflow",
"depends_on_past": False,
"retries": 1,
"retry_delay": dt.timedelta(minutes=1),
"max_active_runs": 10,
"concurrency": 10,
"max_active_tasks": 10,
"max_active_runs": 2,
"concurrency": 2,
"max_active_tasks": 2,
"execution_timeout": dt.timedelta(minutes=30),
}

Expand Down Expand Up @@ -65,7 +65,7 @@ def update_operator(cadence_mins: int) -> BashOperator:
schedule_interval="*/5 * * * *",
start_date=dt.datetime(2025, 1, 1, tzinfo=dt.UTC),
catchup=False,
default_args=default_dag_args,
default_args=default_args,
)
def sat_consumer_dag() -> None:
"""Dag to download and process satellite data from EUMETSAT."""
Expand Down

0 comments on commit fd99eb9

Please sign in to comment.