apache/airflow-client-python

SLAMiss not allowing null value

csm10495 opened this issue · 3 comments

Example:

>>> ti = TaskInstanceApi(api_client)
>>> ti.get_task_instances('tutorial', 'manual__2022-10-31T20:32:58.139267+00:00')
...
ApiValueError: Invalid inputs given to generate an instance of 'TaskInstanceCollectionAllOf'. The input data was invalid for the allOf schema 'TaskInstanceCollectionAllOf' in the composed schema 'TaskInstanceCollection'. Error=Invalid type for variable 'sla_miss'. Required value type is SLAMiss and passed type was NoneType at ['received_data']['task_instances'][0]['sla_miss']

In the raw json data:

...
"sla_miss": null,
...

This is using apache-airflow-client 2.3.0 and airflow 2.3.2

Tried building the latest version of this client from the current latest (219df18414) of airflow... same error.

Raised PR for airflow side: apache/airflow#27423 .. after that gets merged, a fresh generation/upversion of the client should get this closed out.

Fixed in latest merge :)