Closed Bug 1890353 Opened 1 year ago Closed 1 year ago

Airflow task glam_glean_imports.wait_for_glam failed for exec_dates 2024-03-30 to 2024-04-04

Categories

(Data Platform and Tools :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kwindau, Assigned: efilho)

Details

(Whiteboard: [airflow-triage])

Airflow task glam_glean_imports.wait_for_glam failed for exec_dates 2024-03-30 to 2024-04-04

Task link:
https://workflow.telemetry.mozilla.org/dags/glam_glean_imports/grid?dag_run_id=scheduled__2024-03-30T05%3A00%3A00%2B00%3A00&task_id=wait_for_glam

Log extract:

*** Found remote logs:
***   * gs://airflow-remote-logs-prod-prod/dag_id=glam_glean_imports/run_id=scheduled__2024-03-30T05:00:00+00:00/task_id=wait_for_glam/attempt=5.log
[2024-04-02, 05:03:12 UTC] {taskinstance.py:1979} INFO - Dependencies all met for dep_context=non-requeueable deps ti=<TaskInstance: glam_glean_imports.wait_for_glam scheduled__2024-03-30T05:00:00+00:00 [queued]>
[2024-04-02, 05:03:12 UTC] {taskinstance.py:1979} INFO - Dependencies all met for dep_context=requeueable deps ti=<TaskInstance: glam_glean_imports.wait_for_glam scheduled__2024-03-30T05:00:00+00:00 [queued]>
[2024-04-02, 05:03:12 UTC] {taskinstance.py:2193} INFO - Starting attempt 5 of 5
[2024-04-02, 05:03:12 UTC] {taskinstance.py:2214} INFO - Executing <Task(ExternalTaskSensor): wait_for_glam> on 2024-03-30 05:00:00+00:00
[2024-04-02, 05:03:12 UTC] {standard_task_runner.py:60} INFO - Started process 556519 to run task
[2024-04-02, 05:03:12 UTC] {standard_task_runner.py:87} INFO - Running: ['airflow', 'tasks', 'run', 'glam_glean_imports', 'wait_for_glam', 'scheduled__2024-03-30T05:00:00+00:00', '--job-id', '3977015', '--raw', '--subdir', 'DAGS_FOLDER/telemetry-airflow/dags/glam_glean_imports.py', '--cfg-path', '/tmp/tmphd35w1nt']
[2024-04-02, 05:03:12 UTC] {standard_task_runner.py:88} INFO - Job 3977015: Subtask wait_for_glam
[2024-04-02, 05:03:12 UTC] {task_command.py:423} INFO - Running <TaskInstance: glam_glean_imports.wait_for_glam scheduled__2024-03-30T05:00:00+00:00 [running]> on host 10.20.1.75
[2024-04-02, 05:03:12 UTC] {taskinstance.py:2510} INFO - Exporting env vars: AIRFLOW_CTX_DAG_EMAIL='akommasani@mozilla.com,akomarzewski@mozilla.com,efilho@mozilla.com,linhnguyen@mozilla.com' AIRFLOW_CTX_DAG_OWNER='efilho@mozilla.com' AIRFLOW_CTX_DAG_ID='glam_glean_imports' AIRFLOW_CTX_TASK_ID='wait_for_glam' AIRFLOW_CTX_EXECUTION_DATE='2024-03-30T05:00:00+00:00' AIRFLOW_CTX_TRY_NUMBER='5' AIRFLOW_CTX_DAG_RUN_ID='scheduled__2024-03-30T05:00:00+00:00'
[2024-04-02, 05:03:12 UTC] {external_task.py:244} INFO - Poking for tasks ['extracts'] in dag glam on 2024-03-30T02:00:00+00:00 ... 
[2024-04-02, 05:03:12 UTC] {dagbag.py:540} INFO - Filling up the DagBag from /opt/airflow/dags/repo/telemetry-airflow/dags/glam.py
[2024-04-02, 05:03:13 UTC] {taskinstance.py:2728} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/models/taskinstance.py", line 444, in _execute_task
    result = _execute_callable(context=context, **execute_callable_kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/models/taskinstance.py", line 414, in _execute_callable
    return execute_callable(context=context, **execute_callable_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/sensors/external_task.py", line 334, in execute
    super().execute(context)
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/sensors/base.py", line 265, in execute
    raise e
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/sensors/base.py", line 247, in execute
    poke_return = self.poke(context)
                  ^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/utils/session.py", line 79, in wrapper
    return func(*args, session=session, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/airflow/sensors/external_task.py", line 282, in poke
    raise AirflowException(
airflow.exceptions.AirflowException: Some of the external tasks ['extracts'] in DAG glam failed.
[2024-04-02, 05:03:13 UTC] {taskinstance.py:1149} INFO - Marking task as FAILED. dag_id=glam_glean_imports, task_id=wait_for_glam, execution_date=20240330T050000, start_date=20240402T050312, end_date=20240402T050313
[2024-04-02, 05:03:13 UTC] {warnings.py:110} WARNING - /home/airflow/.local/lib/python3.11/site-packages/airflow/utils/email.py:154: RemovedInAirflow3Warning: Fetching SMTP credentials from configuration variables will be deprecated in a future release. Please set credentials using a connection instead.
  send_mime_email(e_from=mail_from, e_to=recipients, mime_msg=msg, conn_id=conn_id, dryrun=dryrun)
[2024-04-02, 05:03:13 UTC] {email.py:270} INFO - Email alerting: attempt 1
[2024-04-02, 05:03:14 UTC] {email.py:281} INFO - Sent an alert email to ['akommasani@mozilla.com', 'akomarzewski@mozilla.com', 'efilho@mozilla.com', 'linhnguyen@mozilla.com']
[2024-04-02, 05:03:14 UTC] {standard_task_runner.py:107} ERROR - Failed to execute job 3977015 for task wait_for_glam (Some of the external tasks ['extracts'] in DAG glam failed.; 556519)
[2024-04-02, 05:03:14 UTC] {local_task_job_runner.py:234} INFO - Task exited with return code 1
[2024-04-02, 05:03:14 UTC] {taskinstance.py:3309} INFO - 0 downstream tasks scheduled from follow-on schedule check

This DAG loads data into GLAM's PostgreSQL DB, but since This DAG has been replaced by bqetl_glam_refresh_aggregates I turned it off. I was going to wait a few more weeks before decommissioning it but now considering the state at which it is, I decided to just leave it on pause until I decommission it, so I'm marking this as wontfix.

Assignee: nobody → efilho
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.