Update exampledag.py using aiflow.sdk by JeanCoiron · Pull Request #1870 · astronomer/astro-cli

using airflow.sdk instead of airflow.decorator to import dag and task
using RuntimeTaskInstanceProtocol instead of context

Description

Update to use latest airflow.sdk

🎟 Issue(s)

No related issue

🧪 Functional Testing

I executed the modified example dag, it works as expected.

📸 Screenshots

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation