Skip to content

revamp some confusing log messages#40334

Merged
potiuk merged 5 commits into
apache:mainfrom
RNHTTR:troubleshooting
Jun 30, 2024
Merged

revamp some confusing log messages#40334
potiuk merged 5 commits into
apache:mainfrom
RNHTTR:troubleshooting

Conversation

@RNHTTR

@RNHTTR RNHTTR commented Jun 19, 2024

Copy link
Copy Markdown
Contributor

Related: #39543, #40141

@boring-cyborg boring-cyborg Bot added area:Scheduler including HA (high availability) scheduler kind:documentation labels Jun 19, 2024
@RNHTTR RNHTTR marked this pull request as ready for review June 19, 2024 20:23
@RNHTTR RNHTTR requested review from XD-DENG, ashb, kaxil and potiuk as code owners June 19, 2024 20:23
@potiuk

potiuk commented Jun 19, 2024

Copy link
Copy Markdown
Member

Fantastic

Comment thread airflow/jobs/local_task_job_runner.py Outdated
Comment thread airflow/jobs/scheduler_job_runner.py Outdated
Comment thread airflow/jobs/scheduler_job_runner.py Outdated
@RNHTTR RNHTTR force-pushed the troubleshooting branch from 93a5e5f to 65be11a Compare June 30, 2024 19:08
@potiuk potiuk merged commit 34e7cab into apache:main Jun 30, 2024
@utkarsharma2 utkarsharma2 added the type:doc-only Changelog: Doc Only label Jul 1, 2024
@utkarsharma2 utkarsharma2 added this to the Airflow 2.9.3 milestone Jul 1, 2024
utkarsharma2 pushed a commit that referenced this pull request Jul 2, 2024
ephraimbuddy pushed a commit that referenced this pull request Jul 2, 2024
Comment on lines +777 to 783
"The executor reported that the task instance %s finished with state %s, but the task instance's state attribute is %s. " # noqa: RUF100, UP031, flynt
"Learn more: https://airflow.apache.org/docs/apache-airflow/stable/troubleshooting.html#task-state-changed-externally"
% (ti, state, ti.state)
)
if info is not None:
msg += " Extra info: %s" % info # noqa: RUF100, UP031, flynt
self._task_context_logger.error(msg, ti, state, ti.state, info, ti=ti)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduced a bug. You are formatting the text twice, one line 779, and then again in self._task_context_logger.error. Fix here: #40563

romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler kind:documentation type:doc-only Changelog: Doc Only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants