question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

State of this instance has been externally set to removed. Taking the poison pill.

See original GitHub issue

Apache Airflow version: 1.10.2

Environment: Linux EC2 Machine

Cloud provider or hardware configuration: AWS What happened: AIiflow Tasks are killed by passing SIGTERM signal

What you expected to happen: ECSOperator triggered from Airflow has to work smoothly when the AWS policies are attached correctly to the role.

How to reproduce it: Using Airflow Dags when I run ECS tasks using ECSOperator, the tasks are first triggered and a response of 200 is received which I see in the logs. But the very next log message is

State of this instance has been externally set to removed. Taking the poison pill

This goes and kills the ECS task and a response of ‘desiredStatus’: ‘STOPPED’ is returned back. The log messages does not clearly say as why the task was killed.

Under airflow.cfg the configurations are as follow parallelism = 32 dag_concurrency = 16 dags_are_paused_at_creation = True max_active_runs_per_dag = 16 non_pooled_task_slot_count = 128

Kindly change the log messages so that we understand what is the root cause of the issue

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
potiukcommented, Jul 10, 2021

hey @K-7 - Airflow is a community managed product that you get for free. I think if you are aware of such issue, absolutely the best what you can do is to raise pull request fixing it ! This is best way to thank community for all the work they to so that you can use the software for free.

Many of our users do that and we even yesterday run a workshop for first time contributors to help them to learn how to do it.

It seems that fixing error message seems to be an easy task to do. Would you be willing to fix it @K-7 ? this way you could help others to get better diagnostics.

1reaction
mikekennethcommented, Jul 8, 2021

Hi All, Am having the same issue. Please any update on this. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WARNING - State of this instance has been externally set to ...
This error typically occurs when a task has timed out. You could increase the timeout in case your task takes a long time...
Read more >
Tasks taking the poison pills after few seconds of running
Randomly, tasks “take poison pill” few second after starting. ... WARNING - State of this instance has been externally set to up_for_retry.
Read more >
[GitHub] [airflow] deepakjindal90 commented on issue #8087
... [airflow] deepakjindal90 commented on issue #8087: State of this instance has been externally set to removed. Taking the poison pill.
Read more >
state of this instance has been externally set to success airflow
AirflowException: Task received SIGTERM signal [2019-01-22 12:31:39,196] {models.py:1764} INFO - Marking task as FAILED. Taking the poison pill. [2020-03-18 02: ...
Read more >
Troubleshooting DAGs | Cloud Composer
WARNING - State of this instance has been externally set to success. Taking the poison pill. INFO - Subtask ... INFO - Sending...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found