Skip to content

[Feature request] Add more info to output before error: "There are still unapplied migrations after 60 seconds." #15362

Closed

Description

@patsevanton

Hello! Thanks for airflow!
Please Add more info to output before error: "There are still unapplied migrations after 60 seconds."

Code

raise TimeoutError(f"There are still unapplied migrations after {ticker} seconds.")

Feature request from issue #15340

Activity

  1. added
    area:MetaDBMeta Database related issues.
    area:upgradeFacilitating migration to a newer version of Airflow
    on Apr 15, 2021
  2. self-assigned this
    on Apr 15, 2021
  3. kaxil commented on Apr 15, 2021

    @kaxil
    Member

    Like I mentioned in #15340 -- Migrations are run in a different container

    {{- $nodeSelector := or .Values.webserver.nodeSelector .Values.nodeSelector }}
    {{- $affinity := or .Values.webserver.affinity .Values.affinity }}
    {{- $tolerations := or .Values.webserver.tolerations .Values.tolerations }}
    apiVersion: batch/v1
    kind: Job
    metadata:
    name: {{ .Release.Name }}-run-airflow-migrations
    labels:
    tier: airflow
    component: run-airflow-migrations
    release: {{ .Release.Name }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    heritage: {{ .Release.Service }}

    ^^ It is run via Kubernetes Job and name of container is run-airflow-migrations.

    Whereas scheduler and Webserver pods have an init-container that just wait for the migrations to be applied:

    https://github.com/apache/airflow/blob/master/chart/templates/scheduler/scheduler-deployment.yaml#L97-L107

  4. removed their assignment
    on Apr 15, 2021
  5. locked and limited conversation to collaborators on Aug 19, 2023
  6. converted this issue into a discussion #33537 on Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:MetaDBMeta Database related issues.area:upgradeFacilitating migration to a newer version of Airflowkind:featureFeature Requests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions