mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-09 07:53:33 +00:00
fix(ci): fix task instance constructor in airflow tests (#3366)
This commit is contained in:
parent
2580f71474
commit
7dab06519d
@ -233,7 +233,11 @@ def test_lineage_backend(mock_emit, inlets, outlets):
|
|||||||
)
|
)
|
||||||
op1 >> op2
|
op1 >> op2
|
||||||
|
|
||||||
ti = TI(task=op2, execution_date=DEFAULT_DATE)
|
if airflow.version.version.startswith("1"):
|
||||||
|
ti = TI(task=op2, execution_date=DEFAULT_DATE)
|
||||||
|
else:
|
||||||
|
ti = TI(task=op2)
|
||||||
|
|
||||||
ctx1 = {
|
ctx1 = {
|
||||||
"dag": dag,
|
"dag": dag,
|
||||||
"task": op2,
|
"task": op2,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user