Skip to content

Commit

Permalink
Example dag: passed string value to pull func
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestaP committed Mar 11, 2024
1 parent ebcd3d6 commit a2c90e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dags/example_dag/example_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def pull(test_string, **kwargs):
@dag(
start_date=pendulum.today("UTC").add(days=-1),
schedule="@hourly",
params={"from_date": None, "until_date": None, "per_page": None},
params={},
)
def test_dag():
@task()
Expand All @@ -26,7 +26,7 @@ def fetch_task(**kwargs):
@task()
def pull_task(test_string, **kwargs):
logging.info(f"The value from previous task is: {test_string}")
return pull()
return pull(test_string)

value = fetch_task()
pull_task(value)
Expand Down

0 comments on commit a2c90e6

Please sign in to comment.