dirrao commented on code in PR #36813:
URL: https://github.com/apache/airflow/pull/36813#discussion_r1454463089


##########
airflow/providers/apache/druid/hooks/druid.py:
##########
@@ -107,9 +107,9 @@ def submit_indexing_job(
         req_index = requests.post(url, data=json_index_spec, 
headers=self.header, auth=self.get_auth())
 
         code = req_index.status_code
-        if code != 200:
+        if code not in [200, 202]:

Review Comment:
   isn't it good idea to check for 2xx instead of specific codes?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to