You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/31 21:24:24 UTC

[GitHub] [airflow] csm10495 opened a new pull request, #27423: SLAMiss is nullable and not always given back when pulling task instances

csm10495 opened a new pull request, #27423:
URL: https://github.com/apache/airflow/pull/27423

   related: https://github.com/apache/airflow-client-python/issues/50
   
   It appears as though the API doesn't have to return an SLAMiss value, so therefore it can be nullable. Without this change (and rebuilding of the client) we get a failure like so: 
   
   ```
   >>> 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']
   ```
   
   With this change (and rebuilding of the client) it works fine.
   
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] bbovenzi merged pull request #27423: SLAMiss is nullable and not always given back when pulling task instances

Posted by GitBox <gi...@apache.org>.
bbovenzi merged PR #27423:
URL: https://github.com/apache/airflow/pull/27423


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org