You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "deepak4babu (via GitHub)" <gi...@apache.org> on 2026/03/03 14:02:20 UTC

[I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

deepak4babu opened a new issue, #62788:
URL: https://github.com/apache/airflow/issues/62788

   ### Apache Airflow version
   
   Other Airflow 3 version (please specify below)
   
   ### If "Other Airflow 3 version" selected, which one?
   
   3.0.6
   
   ### What happened?
   
   When creating pools using airflow pools api, the api does not return 409 conflict exception if pool already exists.
   
   ### What you think should happen instead?
   
   The api should return 409 status code, if pool exists.
   
   ### How to reproduce
   
   Create a pool in airflow UI. Try to create the same pool using airflow pools api.
   
   ### Operating System
   
   Debian GNU/Linux 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-celery==3.12.2
   apache-airflow-providers-cncf-kubernetes==10.8.2
   apache-airflow-providers-common-compat==1.7.3
   apache-airflow-providers-common-io==1.6.2
   apache-airflow-providers-common-sql==1.27.5
   apache-airflow-providers-fab==2.4.1
   apache-airflow-providers-ftp==3.13.2
   apache-airflow-providers-http==5.3.3
   apache-airflow-providers-imap==3.9.2
   apache-airflow-providers-postgres==6.2.3
   apache-airflow-providers-smtp==2.2.0
   apache-airflow-providers-sqlite==4.1.2
   apache-airflow-providers-standard==1.6.0
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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

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


Re: [I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 commented on issue #62788:
URL: https://github.com/apache/airflow/issues/62788#issuecomment-3998679774

   @deepak4babu amd @shashbha14 could you please check with 3.1.7. If works, we can close this one


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


Re: [I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

Posted by "itayweb (via GitHub)" <gi...@apache.org>.
itayweb commented on issue #62788:
URL: https://github.com/apache/airflow/issues/62788#issuecomment-3993367221

   You meant [this](https://airflow.apache.org/docs/apache-airflow/3.1.7/stable-rest-api-ref.html#operation/post_pool) api endpoint? because I've tried in later version (3.1.7) and it does throw 409 status code


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


Re: [I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

Posted by "shashbha14 (via GitHub)" <gi...@apache.org>.
shashbha14 commented on issue #62788:
URL: https://github.com/apache/airflow/issues/62788#issuecomment-3996511531

      I’d like to work on this. I’ll verify the behavior on 3.0.6 vs 3.1.7 and open a PR if I confirm the bug.


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


Re: [I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #62788:
URL: https://github.com/apache/airflow/issues/62788#issuecomment-3999340919

   Agree with @bugraoz93 . This is not reproducible on main using UI for creating pools and swagger with the API returning the below message while trying to create a pool with a name that already exists.
   
   ```
   {
     "detail": {
       "reason": "Unique constraint violation",
       "statement": "INSERT INTO slot_pool (pool, slots, description, include_deferred, team_name) VALUES (%(pool)s, %(slots)s, %(description)s, %(include_deferred)s, %(team_name)s)",
       "orig_error": "(1062, \"Duplicate entry 'test' for key 'slot_pool.slot_pool_pool_uq'\")",
       "message": "Serious error when handling your request. Check logs for more details - you will find it in api server when you look for ID 4MXLiK1l"
     }
   }
   ```


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


Re: [I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 closed issue #62788: Airflow pools api is not raising 409 conflict for existing pools
URL: https://github.com/apache/airflow/issues/62788


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


Re: [I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 commented on issue #62788:
URL: https://github.com/apache/airflow/issues/62788#issuecomment-3998655096

   > You meant [this](https://airflow.apache.org/docs/apache-airflow/3.1.7/stable-rest-api-ref.html#operation/post_pool) api endpoint? because I've tried in later version (3.1.7) and it does throw 409 status code
   
   According to this, we can even close the issue then.


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


Re: [I] Airflow pools api is not raising 409 conflict for existing pools [airflow]

Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 commented on issue #62788:
URL: https://github.com/apache/airflow/issues/62788#issuecomment-3999404566

   This is already enough for closing, many thanks for checking @tirkarthi and @itayweb!
   
   Thanks for raising the ticket @deepak4babu ! Please update one more patch version to fix the issue :) Please don't hesitate to raise again if you see something wrong 


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