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 2021/04/28 16:37:33 UTC

[GitHub] [airflow] zorzigio commented on issue #15571: Accessing log when using KEDA

zorzigio commented on issue #15571:
URL: https://github.com/apache/airflow/issues/15571#issuecomment-828602394


   I guess that one solution would be to have at least one worker always running, for example changing the query from 
   
   ```sql
   SELECT ceil(COUNT(*)::decimal / 16)
   FROM task_instance
   WHERE state='running' OR state='queued'
   ```
   
   to 
   
   ```sql
   SELECT GREATEST (
       (
           SELECT ceil(COUNT(*)::decimal / 16)
           FROM task_instance
           WHERE state='running' OR state='queued'
       ),
       1
   )
   ```
   
   This would also eliminate the ~30s delay when the worker is starting


-- 
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.

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