Skip to content

Commit

Permalink
dag_test
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir2217 committed Dec 7, 2024
1 parent cc876da commit f2403cd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dags/roger/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,14 +390,22 @@ def create_pipeline_taskgroup(
name = pipeline_class.pipeline_name
input_dataset_version = pipeline_class.input_version

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)

with TaskGroup(group_id=f"{name}_dataset_pipeline_task_group") as tg:
do_nothing = lambda *args: None
with pipeline_class(config=configparam, **kwargs) as pipeline:
pipeline: DugPipeline
annotate_task = create_python_task(
dag,
f"annotate_{name}_files",
do_nothing,
print_context,
external_repos=[{
'name': getattr(pipeline_class, 'pipeline_name'),
'branch': input_dataset_version,
Expand Down

0 comments on commit f2403cd

Please sign in to comment.