Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional prefix to config for DAG name #216

Open
wants to merge 1 commit into
base: features/status2023
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/egon/data/airflow/dags/pipeline_status_quo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from airflow.utils.dates import days_ago
import airflow

from egon.data.config import settings as egon_settings
from egon.data.config import set_numexpr_threads
from egon.data.datasets import database
from egon.data.datasets.ch4_prod import CH4Production
Expand Down Expand Up @@ -74,10 +75,10 @@
# Set number of threads used by numpy and pandas
set_numexpr_threads()


prefix = egon_settings()["egon-data"].get("--prefix")

with airflow.DAG(
"powerd-status-quo-processing-pipeline",
f"{prefix}-powerd-status-quo-processing-pipeline",
description="The PoWerD Status Quo data processing DAG.",
default_args={"start_date": days_ago(1),
"email_on_failure": False,
Expand Down
Loading