Skip to main content

521 posts tagged with "Fixes"

Fixes for Common Issues and Errors

View All Tags

Fixed: "Cannot create DagRun for DAG … because the dag is not serialized" in Apache Airflow®

· 10 min read
Jagdish Kumawat
Founder @ Dewiride

I ran a Dag file with python to try the Dag out with dag.test() in Apache Airflow® 3.4.0, and it stopped with Cannot create DagRun for DAG say_hello because the dag is not serialized. The Dag was created only inside the file's if __name__ == "__main__": block, where Airflow's own reading of the file never sees it. Here's how I found that out, and the small change that fixed it.

Fixed: BashOperator Runs ~/.bashrc When env Is Set in Apache Airflow®

· 14 min read
Jagdish Kumawat
Founder @ Dewiride

In Apache Airflow® 3.4.0, a BashOperator task that set env ran ~/.bashrc before its command: what the file printed showed up in the task log, and what it exported reached the command. The same task with append_env=True didn't. Here's how I tracked it down on macOS, why it happens, and two ways to stop it until the fix is released.

Fixed: airflow standalone Hangs at "Shutting down components" After Ctrl+C in Apache Airflow®

· 11 min read
Jagdish Kumawat
Founder @ Dewiride

Most of the time, Ctrl+C stopped Apache Airflow® 3.4.0's airflow standalone in under a minute: Shutting down components, then Complete, and my prompt came back. Sometimes it stopped at Shutting down components and never finished. Here's what was still running, why it hangs, what I reported upstream, and how to end it until the fix is released.

Fixed: "ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly." in Apache Airflow®

· 9 min read
Jagdish Kumawat
Founder @ Dewiride

Every time I started Apache Airflow® 3.4.0 with airflow standalone, the scheduler and the triggerer each printed the same warning from uvicorn: ASGI app factory detected. Using it, but please consider setting the --factory flag explicitly. Nothing was broken. Here's where it comes from, what I reported upstream, and the setting that hides it until the fix is released.

Fixed: airflow dags unpause Shows is_paused True in Apache Airflow®

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

I unpaused a Dag from the terminal in Apache Airflow® 3.4.0, and the answer said is_paused | True, as if the Dag were still paused. It wasn't: the command had worked, and the table showed the Dag's state from before the command. airflow dags pause does the same the other way round. Here's how I checked, why it happens, and how to see the real state.

Fixed: "Could not import graphviz. Rendering graph to the graphical format will not be possible." in Apache Airflow®

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

Every airflow dags command I ran in Apache Airflow® 3.4.0 printed a three-line warning: Could not import graphviz. Rendering graph to the graphical format will not be possible. It appeared even for commands that never draw a graph. Here's where it comes from, the one package that ends it, and why Airflow's graphviz extra doesn't help on a Mac.

Fixed: "FileType is deprecated. Simply open files after parsing arguments." in Apache Airflow®

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

On Python 3.14, every Apache Airflow® 3.4.0 command I ran started with the same two warnings: FileType is deprecated. Simply open files after parsing arguments. Even airflow version printed them before the version number. They come from Airflow's own command-line code, not from your Dags. Here's how I traced them, what I reported upstream, and how to hide exactly this message until the fixed release is out.

Fixed: RuntimeError: expected common dtype to be floating point, yet common dtype is Long in cosine_similarity

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

I compared two vectors of whole numbers with PyTorch's cosine_similarity, and it stopped with RuntimeError: expected common dtype to be floating point, yet common dtype is Long. The function computes in decimal numbers, and both inputs held whole numbers. Converting them with .float() fixed it.