
#AIRFLOW XCOM DELETE UPGRADE#
INFO Running upgrade 6e96a59344a4 -> d38e04c12aa2, add serialized_dag table INFO Running upgrade 939bb1e647c8 -> 6e96a59344a4, Make TaskInstance.pool not nullable INFO Running upgrade dd4ecb8fbee3 -> 939bb1e647c8, task reschedule fk on cascade delete INFO Running upgrade c8ffec048a3b -> dd4ecb8fbee3, Add schedule interval to dag INFO Running upgrade 41f5f12752f8 -> c8ffec048a3b, add fields to dag INFO Running upgrade 03bc53e68815 -> 41f5f12752f8, add superuser field INFO Running upgrade 9635ae0956e7 -> 0a2a5b66e19d, add task_reschedule table INFO Running upgrade dd25f486b8ea -> bf00311e1990, add index to taskinstance INFO Running upgrade 9635ae0956e7 -> dd25f486b8ea, add idx_log_dag INFO Running upgrade 05f30312d566 -> f23433877c24, fix mysql not null constraint INFO Running upgrade 27c6a30d7c24 -> 86770d1215c0, add kubernetes scheduler uniqueness INFO Running upgrade 33ae817a1ff4 -> 27c6a30d7c24, kubernetes_resource_checkpointing INFO Running upgrade d2ae31099d61 -> 33ae817a1ff4, kubernetes_resource_checkpointing INFO Running upgrade d2ae31099d61 -> 0e2a74e0fc9f, Add time zone awareness INFO Running upgrade 947454bf1dff -> d2ae31099d61, Increase text size for MySQL (not relevant for other DBs' text types) INFO Running upgrade bdaa763e6c56 -> 947454bf1dff, add ti job_id index INFO Running upgrade cc1e65623dc7 -> bdaa763e6c56, Make xcom value column a large binary INFO Running upgrade 127d2bf2dfa7 -> cc1e65623dc7, add max tries column to task instance INFO Running upgrade 5e7d17757c7a -> 127d2bf2dfa7, Add dag_id/state index on dag_run table INFO Running upgrade 8504051e801b -> 5e7d17757c7a, add pid field to TaskInstance INFO Running upgrade 4addfa1236f1 -> 8504051e801b, xcom dag task indices INFO Running upgrade f2ca10b85618 -> 4addfa1236f1, Add fractional seconds to mysql tables INFO Running upgrade 64de9cddf6c9 -> f2ca10b85618, add dag_stats table INFO Running upgrade 211e584da130 -> 64de9cddf6c9, add task fails journal table INFO Running upgrade 2e82aab8ef20 -> 211e584da130, add TI state index INFO Running upgrade 1968acfc09e3 -> 2e82aab8ef20, rename user table INFO Running upgrade bba5a7cfc896 -> 1968acfc09e3, add is_encrypted column to variable table INFO Running upgrade bbc73705a13e -> bba5a7cfc896, Add a column to track the encryption state of the 'Extra' field in connection INFO Running upgrade 4446e08588 -> bbc73705a13e, Add notification_sent column to sla_miss

#AIRFLOW XCOM DELETE PASSWORD#
INFO Running upgrade 40e67319e3a9 -> 561833c1c74b, add password column to user INFO Running upgrade 2e541a1dcfed -> 40e67319e3a9, dagrun_config INFO Running upgrade 1b38cef5b76e -> 2e541a1dcfed, task_duration INFO Running upgrade 13eb55f81627 -> 338e90f54d61, More logging into task_instance INFO Running upgrade 1507a7289a2f -> 13eb55f81627, maintain history for compatibility with earlier migrations INFO Running upgrade e3a246e0dc1 -> 1507a7289a2f, create is_encrypted INFO Running upgrade -> e3a246e0dc1, current schema
#AIRFLOW XCOM DELETE INSTALL#
Sql_alchemy_conn = postgresql+psycopg2://airflow_user:airflow_pass pip install psycopg2

We will replace the existing sql_alchemy_conn parameter with the below value: In other words, we need to alter the connection configuration in the airflow.cfg file. Start the Airflow server last step is to tell our Airflow installation to connect to the Postgres server instead of using SQLite. Postgres=# GRANT ALL PRIVILEGES ON DATABASE airflow_db to lsĪirflow.cfg 01112022 airflow.db airflow-webserver.pid logs webserver_config.py Postgres=# CREATE USER airflow_user WITH PASSWORD 'airflow_sdu' Name | Owner | Encoding | Collate | Ctype | Access privileges Below SQL commands can help us achieve the same:Ĭreate Airflow User in PostgreSQL: su - psql We will first create airflow_db and a user with airflow_user and airflow_pass . Start Airflow and airflow schedule, create airflow user in Postgresql
