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 2021/02/23 21:14:28 UTC

[GitHub] [airflow] zachliu commented on issue #13799: Scheduler crashes when unpausing some dags with: TypeError: '>' not supported between instances of 'NoneType' and 'int'

zachliu commented on issue #13799:
URL: https://github.com/apache/airflow/issues/13799#issuecomment-784517097


   i'm glad i found this before opening another issue :joy: 
   
   **Apache Airflow version**: 2.0.1
   
   **What happened**:
   
   ```python
   >>> import requests
   >>> from requests.auth import HTTPBasicAuth
   >>> r = requests.get("https://localhost:8080/api/v1/dags/{my_dag_id}/dagRuns/scheduled__2020-04-13T00%3A00%3A00%2B00%3A00/taskInstances", auth=HTTPBasicAuth('username', 'password'))
   >>> r.status_code
   500
   >>> print(r.text)
   {
     "detail": "None is not of type 'integer'\n\nFailed validating 'type' in schema['allOf'][0]['properties']
   ['task_instances']['items']['properties']['pool_slots']:\n    {'type': 'integer'}\n\nOn instance['task_ins
   tances'][0]['pool_slots']:\n    None",
     "status": 500,
     "title": "Response body does not conform to specification",
     "type": "https://airflow.apache.org/docs/2.0.1/stable-rest-api-ref.html#section/Errors/Unknown"
   }
   
   >>> print(r.json()["detail"])
   None is not of type 'integer'
   
   Failed validating 'type' in schema['allOf'][0]['properties']['task_instances']['items']['properties']['poo
   l_slots']:
       {'type': 'integer'}
   
   On instance['task_instances'][0]['pool_slots']:
       None
   ```


----------------------------------------------------------------
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.

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