The `refresh_from_db` method in the `TaskInstance` class of Python Airflow's models module is used to refresh the task instance object's attributes from the database. This method retrieves the latest data for the task instance from the database and updates the object's attributes accordingly. This is useful when modifying the task instance outside of the current session and needing to synchronize the object's attributes with the latest data in the database.
Python TaskInstance.refresh_from_db - 49 examples found. These are the top rated real world Python examples of airflow.models.TaskInstance.refresh_from_db extracted from open source projects. You can rate examples to help us improve the quality of examples.