astronomer / astronomer-airflow-version-check

Plugin to check if new version of Astronomer Certified Airflow is available
Apache License 2.0
1 stars 2 forks source link

Select if unique constraint row exists #12

Closed ashb closed 4 years ago

ashb commented 4 years ago

Without doing this we will show

ERROR: duplicate key value violates unique constraint "astro_version_check_pkey"

in the Postgres server logs -- nothing is wrong with this, but it isn't great to show errors, especially in local environments where users might notice this.

(We still need the try/except around the bulk save as two processes could race to create it still.)