[
https://issues.apache.org/jira/browse/AIRFLOW-4484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ash Berlin-Taylor updated AIRFLOW-4484:
---------------------------------------
Description:
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?
was:
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:
```
def handle_timeout(self, signum, frame):
self.log.error("Process timed out, PID: %s", str(os.getpid()))
raise AirflowTaskTimeout(self.error_message)
```
called from here: airflow/executors/celery_executor.py#fetch_celery_task_state
```
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)
```
along with an AirflowTaskTimeout raising here:
airflow/executors/celery_executor.py#heartbeat
```
if isinstance(result, ExceptionWithTraceback):
self.log.error(
CELERY_SEND_ERR_MSG_HEADER + ":{}\n{}\n".format(
result.exception, result.traceback))
```
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?
> 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: 1.10.4
>
>
> 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
(v7.6.3#76005)