* This page is part of the open-source Flyte v2 docs.
* Full index: https://www.union.ai/docs/v2/flyte/llms.txt
* Flyte is the open-source project. Union.ai is a commercial superset of it and uses the same `flyte` SDK and CLI, so the Union.ai docs cover everything here and more.
* If a question is not answered in these docs, or is about a feature that may be commercial, check the Union.ai v2 docs at https://www.union.ai/docs/v2/union/llms.txt
* These are the v2 docs. v1 is out of date and deprecated. Only refer to v1 docs if asked explicitly about v1. The v1 index is at https://www.union.ai/docs/v1/flyte/llms.txt

Port a Flyte 1 codebase to Flyte 2, or map Airflow concepts to their Flyte 2 equivalents.

# Migration

Guides for migrating to Flyte 2 from other systems.

### [From Flyte 1 to 2](https://www.union.ai/docs/v2/flyte/user-guide/migration/flyte-2.md)

What's new in Flyte 2 (pure Python execution, simplified API, fine-grained reproducibility) and how to port a Flyte 1 codebase.

### [From Airflow to Flyte](https://www.union.ai/docs/v2/flyte/user-guide/migration/from-airflow.md)

Mapping from Airflow concepts (DAGs, operators, schedules, XCom, trigger rules) to their Flyte 2 equivalents.

### [From Slurm to Flyte](https://www.union.ai/docs/v2/flyte/user-guide/migration/from-slurm.md)

Mapping from Slurm concepts (sbatch scripts, modules, job arrays, dependencies, partitions, requeue, multi-node jobs) to their Flyte 2 equivalents.

## Subpages

- [From Flyte 1 to 2](https://www.union.ai/docs/v2/flyte/user-guide/migration/flyte-2.md) - What's new in Flyte 2 (pure Python execution, simplified API, fine-grained reproducibility) and how to port a Flyte 1 codebase.
  - Pure Python execution
  - Sync Python
  - Async Python
  - Simplified API
  - Fine-grained reproducibility and recoverability
  - Improved remote functionality
  - Native notebook support
- [From Airflow to Flyte](https://www.union.ai/docs/v2/flyte/user-guide/migration/from-airflow.md) - Mapping from Airflow concepts (DAGs, operators, schedules, XCom, trigger rules) to their Flyte 2 equivalents.
  - [Part 1: Vanilla Operators](https://www.union.ai/docs/v2/flyte/user-guide/migration/from-airflow/part-1-vanilla-operators.md)
- [From Slurm to Flyte](https://www.union.ai/docs/v2/flyte/user-guide/migration/from-slurm.md) - Mapping from Slurm concepts (sbatch scripts, modules, job arrays, dependencies, partitions, requeue, multi-node jobs) to their Flyte 2 equivalents.
  - The mapping at a glance
  - The job script becomes a task
  - `module load` becomes an image
  - Job arrays become fan-out
  - Job dependencies become ordinary Python
  - `--requeue` becomes retries, spot handling, and checkpoints
  - Multi-node jobs become clustered tasks
  - The shared filesystem becomes explicit data
  - Watching and debugging jobs
  - Staging the migration
  - Gang admission, preemption, and topology

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/user-guide/migration/_index.md
**HTML**: https://www.union.ai/docs/v2/flyte/user-guide/migration/
