[
https://issues.apache.org/jira/browse/AIRFLOW-4484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152372#comment-17152372
]
Sandish Kumar HN commented on AIRFLOW-4484:
-------------------------------------------
Hi Everyone,
We are facing the same issue. here is what I found after some analysis. the
issue occurs when there is high pressure on airflow DB, in my case its
Postgres. whenever there is 90% of heap used by non-airflow DB's queries this
issue occurs.
> CeleryExecutor#sync timesout when fetching celery task state
> ------------------------------------------------------------
>
> Key: AIRFLOW-4484
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4484
> Project: Apache Airflow
> Issue Type: Bug
> Components: celery
> Affects Versions: 1.10.3
> Reporter: Teresa Martyny
> Priority: Major
> Fix For: 2.0.0
>
>
> We're seeing a quite a few process time outs raising during our core pipeline
> run. We traced it back to CeleryExecutor#sync calling
> #fetch_celery_task_state and timing out here:
>
> airflow/utils/timeout.py:
> {code:python}
> def handle_timeout(self, signum, frame):
> self.log.error("Process timed out, PID: %s", str(os.getpid()))
> raise AirflowTaskTimeout(self.error_message)
> {code}
> called from here: airflow/executors/celery_executor.py#fetch_celery_task_state
> {code:python}
> with timeout(seconds=2):
> # Accessing state property of celery task will make actual network request
> # to get the current state of the task.
> res = (celery_task[0], celery_task[1].state)
> {code}
> along with an AirflowTaskTimeout raising here:
> airflow/executors/celery_executor.py#heartbeat
> {code:python}
> if isinstance(result, ExceptionWithTraceback):
> self.log.error(
> CELERY_SEND_ERR_MSG_HEADER + ":{}\n{}\n".format(
> result.exception, result.traceback))
> {code}
>
> This code was introduced in this new feature:
> https://issues.apache.org/jira/browse/AIRFLOW-2761
> Are there configuration settings that we need to set as a result of this new
> code to avoid these timeouts?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)