Skip to content

Commit

Permalink
dag_test
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir2217 committed Dec 6, 2024
1 parent 072676b commit cc876da
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions dags/annotate_and_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from airflow.models import DAG
from airflow.operators.empty import EmptyOperator
from airflow.operators.python import PythonOperator
from roger.tasks import default_args, create_pipeline_taskgroup, logger

env_enabled_datasets = os.getenv(
Expand All @@ -30,8 +31,7 @@
init = EmptyOperator(task_id="init", dag=dag)
finish = EmptyOperator(task_id="finish", dag=dag)

logger.info(f"annotate_and_index params >>> {dag.params}")
logger.info(f"annotate_and_index default_args >>> {dag.default_args}")

from roger import pipelines
from roger.config import config
envspec = os.getenv("ROGER_DUG__INPUTS_DATA__SETS","topmed:v2.0")
Expand All @@ -54,3 +54,26 @@




with DAG(
dag_id='dag_test',
default_args=default_args,
params=
{
"repository_id": None,
"branch_name": None,
"commitid_from": None,
"commitid_to": None
},
schedule_interval=None
) as dag:

def print_context(ds=None, **kwargs):
print(">>>All kwargs")
print(kwargs)
print(">>>All ds")
print(ds)



run_this = PythonOperator(task_id="print_the_context", python_callable=print_context)

0 comments on commit cc876da

Please sign in to comment.