Skip to content

feat: adds entry points for check_connections DAG tasks#24

Merged
helen-m-lin merged 12 commits intomainfrom
feat-check-connections-tasks
Mar 20, 2026
Merged

feat: adds entry points for check_connections DAG tasks#24
helen-m-lin merged 12 commits intomainfrom
feat-check-connections-tasks

Conversation

@helen-m-lin
Copy link
Contributor

@helen-m-lin helen-m-lin commented Mar 19, 2026

Related to https://github.com/AllenNeuralDynamics/aind-airflow-dags/issues/362

This PR enables running tasks in the check_connections DAG using kubernetes pod operators. The idea is that tasks for a DAG will be run as CLI commands where the argument is the task id. Airflow variables, connections, and xcom are passed in env vars using jinja templating, and aws credentials are loaded from k8s secrets.

This PR:

  • refactors handlers to handlers subpackage
  • adds dag_tasks subpackage where each module maps to a dag. Each task is mapped to a function that is exposed through CLI
  • added the functions for the check_connections dag following this template.

@helen-m-lin
Copy link
Contributor Author

Tested locally by building the image and loading into minikube. Things are working for every task other than VAST check. I still need to figure out how to mount vast, but this is something to be done on the KubernetesPodOperator side.

@helen-m-lin helen-m-lin marked this pull request as ready for review March 20, 2026 01:56
@helen-m-lin helen-m-lin requested a review from jtyoung84 March 20, 2026 01:59
Co-authored-by: jtyoung84 <104453205+jtyoung84@users.noreply.github.com>
@helen-m-lin helen-m-lin merged commit 42316e0 into main Mar 20, 2026
3 checks passed
@helen-m-lin helen-m-lin deleted the feat-check-connections-tasks branch March 20, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants