You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/03 15:59:53 UTC

[GitHub] [airflow] ephraimbuddy edited a comment on pull request #21829: Raise import error if a task uses a non-existent pool

ephraimbuddy edited a comment on pull request #21829:
URL: https://github.com/apache/airflow/pull/21829#issuecomment-1058194655


   > The local development story could be (partially?) fixed by having `dags test` or `tasks test` not care about pools, but "normal" parsing should care and error?
   
   Just saw that `dags test` requires a pool. That if the pool is not existing, the task is not run. It fails at https://github.com/apache/airflow/blob/0d856b1ab9804dd5d4dc95537e3bbff18488aaa3/airflow/jobs/backfill_job.py#L545-L547
   
   `tasks test` also gives the error that dependencies are not met if the pool is not existing:
   
   ```log
   [2022-03-03 15:51:31,106] {taskinstance.py:1044} INFO - Dependencies not met for <TaskInstance: example_bash_operator.run_this_last __airflow_in_memory_dagrun__ [None]>, dependency 'Pool Slots Available' FAILED: ("Tasks using non-existent pool '%s' will not be scheduled", 'test-pool')
   ```
   Tested on main
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org