dstandish commented on code in PR #59006:
URL: https://github.com/apache/airflow/pull/59006#discussion_r2592794413
##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -8140,3 +8137,61 @@ def test_mark_backfills_completed(dag_maker, session):
runner._mark_backfills_complete()
b = session.get(Backfill, b.id)
assert b.completed_at.timestamp() > 0
+
+
+def
test_when_dag_run_has_partition_and_downstreams_listening_then_tables_populated(
+ dag_maker,
+ session,
+):
+ asset = Asset(name="hello")
+ with dag_maker(dag_id="asset_event_tester", schedule=None,
session=session) as dag:
+ EmptyOperator(task_id="hi", outlets=[asset])
+ dag1_id = dag.dag_id
+ dr = dag_maker.create_dagrun(partition_key="abc123", session=session)
+ assert dr.partition_key == "abc123"
+ [ti] = dr.get_task_instances(session=session)
+ session.commit()
+
+ with dag_maker(
+ dag_id="asset_event_listener",
+ schedule=PartitionedAssetTimetable(asset, IdentityMapper()),
Review Comment:
can do, will follow up with this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]