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 22:45:54 UTC

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

zachliu edited a comment on issue #13799:
URL: https://github.com/apache/airflow/issues/13799#issuecomment-784565641


   same situation with the `operator` column in `task_instance` table
   i had to do 
   ```SQL
   UPDATE task_instance SET operator = 'NoOperator' WHERE operator IS NULL;
   ```
   should i open a new issue?
   
   ```python
   >>> import json
   >>> import requests
   >>> from requests.auth import HTTPBasicAuth
   >>> payload = {"dag_ids": ["{my_dag_id}"]}
   >>> r = requests.post("https://localhost:8080/api/v1/dags/~/dagRuns/~/taskInstances/list", auth=HTTPBasicAuth('username', 'password'), data=json.dumps(payload), headers={'Content-Type': 'application/json'})
   >>> r.status_code
   500
   >>> print(r.text)
   {
     "detail": "None is not of type 'string'\n\nFailed validating 'type' in schema['allOf'][0]['properties'][
   'task_instances']['items']['properties']['operator']:\n    {'type': 'string'}\n\nOn instance['task_instanc
   es'][5]['operator']:\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"
   }
   None is not of type 'string'
   
   Failed validating 'type' in schema['allOf'][0]['properties']['task_instances']['items']['properties']['ope
   rator']:
       {'type': 'string'}
   
   On instance['task_instances'][5]['operator']:
       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