# Migrate from airflow to temporal

**URL:** <https://community.temporal.io/t/migrate-from-airflow-to-temporal/18544>\
**Category:** Community Support\
**Tags:** python-sdk\
**Created:** [October 22, 2025, 8:20am UTC](https://community.temporal.io/t/migrate-from-airflow-to-temporal/18544 "2025-10-22T08:20:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![happytomatoe543](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/happytomatoe543/32/6673_2.png) [@happytomatoe543](https://community.temporal.io/u/happytomatoe543)\
**Post date:** [October 22, 2025, 8:20am UTC](https://community.temporal.io/t/migrate-from-airflow-to-temporal/18544/1 "2025-10-22T08:20:03Z")

</div>

We are thinking about migrating from airflow to temporal. We probably run 100-150 dag runs max. There is one thing that detracts us from temporal - infinite retries. By default airflow will fail on every exception. I’ve tried to make it same in temporal with specifying next when creating a Python worker

```auto
 workflow_failure_exception_types=[Exception],

```

But still in some cases like if we have a bug in the code the system is getting stuck(tries 1 time and pauses). How to mitigate that? Unfortunately I don’t know all the possible exceptions to make them non-retryable. What are the ways to solve this? Get a notification on every unexpected exception that happens in the system?

---

<div class="post-metadata">

**Author:** ![antonio.perez](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/antonio.perez/32/2417_2.png) [@antonio.perez](https://community.temporal.io/u/antonio.perez)\
**Post date:** [October 22, 2025, 4:33pm UTC](https://community.temporal.io/t/migrate-from-airflow-to-temporal/18544/2 "2025-10-22T16:33:05Z")

</div>

Hi

> infinite retries

This is by design, [workflow task is retried](https://docs.temporal.io/references/failures#errors-in-workflows) which allows you to detect the bug (with logs and [sdk metrics](https://docs.temporal.io/references/sdk-metrics#workflow_task_execution_failed)) fix the code and the workflow will continue as if nothing had happened.

> But still in some cases like if we have a bug in the code the system is getting stuck(tries 1 time and pauses)

you can wrap your exceptions in an [ApplicationError](https://python.temporal.io/temporalio.exceptions.ApplicationError.html)

It is not that it paused, workflow tasks are retried with an exponential backoff (up to 10 minutes) but retries are not written to the workflow history to avoid excessive growth of the event history, which could negatively impact performance and storage

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [October 23, 2025, 9:30pm UTC](https://community.temporal.io/t/migrate-from-airflow-to-temporal/18544/3 "2025-10-23T21:30:56Z")

</div>

Did you disable activity retries by setting maxAttempts to 1?

---

<div class="post-metadata">

**Author:** ![happytomatoe543](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/happytomatoe543/32/6673_2.png) [@happytomatoe543](https://community.temporal.io/u/happytomatoe543)\
**Post date:** [October 25, 2025, 8:41am UTC](https://community.temporal.io/t/migrate-from-airflow-to-temporal/18544/4 "2025-10-25T08:41:48Z")

</div>

That’s even better. I’ve tried 3 max attempts by default. Thank you, Sir!
