I have tried with multiple instances to get the current running tasks within a dag.
ti = TaskInstance("task_id", default_args['start_date'])
state = ti.current_state()```
and even on this :
``` ti = get_task_instance(DAG_NAME, "task_id", default_args['start_date'])```
it returns an error of dag not found.