Airflow scheduler not pick up tasks, task waiting forever












0















I met an issue that my task in a tag never got pick up by workers for some reason.
When I look at the task details:




All dependencies are met but the task instance is not running. In most
cases this just means that the task will probably be scheduled soon
unless:
- The scheduler is down or under heavy load



If this task instance does not start soon please contact your Airflow
administrator for assistance.




I checked the scheduler, no errors in the log, also restarted it a few times.



I also checked the airflow websever log, only notice this:




22/11/2018 12:10:39[2018-11-22 01:10:39,747] {{cli.py:644}} DEBUG - [5
/ 5] killing 1 workers 22/11/2018 12:10:39[2018-11-22 01:10:39 +0000]
[43] [INFO] Handling signal: ttou 22/11/2018 12:10:39[2018-11-22
01:10:39 +0000] [348] [INFO] Worker exiting (pid: 348)




Not sure what happens, it worked fine before.



Airflow version 1.9.0, never change the version, only playing around some of the config: min_file_process_interval and dag_dir_list_interval (but I put it back to default when encounter this issue)



enter image description here










share|improve this question



























    0















    I met an issue that my task in a tag never got pick up by workers for some reason.
    When I look at the task details:




    All dependencies are met but the task instance is not running. In most
    cases this just means that the task will probably be scheduled soon
    unless:
    - The scheduler is down or under heavy load



    If this task instance does not start soon please contact your Airflow
    administrator for assistance.




    I checked the scheduler, no errors in the log, also restarted it a few times.



    I also checked the airflow websever log, only notice this:




    22/11/2018 12:10:39[2018-11-22 01:10:39,747] {{cli.py:644}} DEBUG - [5
    / 5] killing 1 workers 22/11/2018 12:10:39[2018-11-22 01:10:39 +0000]
    [43] [INFO] Handling signal: ttou 22/11/2018 12:10:39[2018-11-22
    01:10:39 +0000] [348] [INFO] Worker exiting (pid: 348)




    Not sure what happens, it worked fine before.



    Airflow version 1.9.0, never change the version, only playing around some of the config: min_file_process_interval and dag_dir_list_interval (but I put it back to default when encounter this issue)



    enter image description here










    share|improve this question

























      0












      0








      0








      I met an issue that my task in a tag never got pick up by workers for some reason.
      When I look at the task details:




      All dependencies are met but the task instance is not running. In most
      cases this just means that the task will probably be scheduled soon
      unless:
      - The scheduler is down or under heavy load



      If this task instance does not start soon please contact your Airflow
      administrator for assistance.




      I checked the scheduler, no errors in the log, also restarted it a few times.



      I also checked the airflow websever log, only notice this:




      22/11/2018 12:10:39[2018-11-22 01:10:39,747] {{cli.py:644}} DEBUG - [5
      / 5] killing 1 workers 22/11/2018 12:10:39[2018-11-22 01:10:39 +0000]
      [43] [INFO] Handling signal: ttou 22/11/2018 12:10:39[2018-11-22
      01:10:39 +0000] [348] [INFO] Worker exiting (pid: 348)




      Not sure what happens, it worked fine before.



      Airflow version 1.9.0, never change the version, only playing around some of the config: min_file_process_interval and dag_dir_list_interval (but I put it back to default when encounter this issue)



      enter image description here










      share|improve this question














      I met an issue that my task in a tag never got pick up by workers for some reason.
      When I look at the task details:




      All dependencies are met but the task instance is not running. In most
      cases this just means that the task will probably be scheduled soon
      unless:
      - The scheduler is down or under heavy load



      If this task instance does not start soon please contact your Airflow
      administrator for assistance.




      I checked the scheduler, no errors in the log, also restarted it a few times.



      I also checked the airflow websever log, only notice this:




      22/11/2018 12:10:39[2018-11-22 01:10:39,747] {{cli.py:644}} DEBUG - [5
      / 5] killing 1 workers 22/11/2018 12:10:39[2018-11-22 01:10:39 +0000]
      [43] [INFO] Handling signal: ttou 22/11/2018 12:10:39[2018-11-22
      01:10:39 +0000] [348] [INFO] Worker exiting (pid: 348)




      Not sure what happens, it worked fine before.



      Airflow version 1.9.0, never change the version, only playing around some of the config: min_file_process_interval and dag_dir_list_interval (but I put it back to default when encounter this issue)



      enter image description here







      airflow airflow-scheduler






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 1:19









      Kevin LiKevin Li

      932615




      932615
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I do notice that this happens when I am playing around with some of the airflow config and rebuild our docker airflow image, then I revert it back to the original version, which used to work. Then the problem solved.



          I also notice one error occurred (but not always captured) in my celery workers when I use the newly built image:




          Unrecoverable error: AttributeError("'float' object has no attribute 'items'",)




          So find that it is related to the latest redis release (Celery will use redis), you can find more details.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422644%2fairflow-scheduler-not-pick-up-tasks-task-waiting-forever%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I do notice that this happens when I am playing around with some of the airflow config and rebuild our docker airflow image, then I revert it back to the original version, which used to work. Then the problem solved.



            I also notice one error occurred (but not always captured) in my celery workers when I use the newly built image:




            Unrecoverable error: AttributeError("'float' object has no attribute 'items'",)




            So find that it is related to the latest redis release (Celery will use redis), you can find more details.






            share|improve this answer




























              0














              I do notice that this happens when I am playing around with some of the airflow config and rebuild our docker airflow image, then I revert it back to the original version, which used to work. Then the problem solved.



              I also notice one error occurred (but not always captured) in my celery workers when I use the newly built image:




              Unrecoverable error: AttributeError("'float' object has no attribute 'items'",)




              So find that it is related to the latest redis release (Celery will use redis), you can find more details.






              share|improve this answer


























                0












                0








                0







                I do notice that this happens when I am playing around with some of the airflow config and rebuild our docker airflow image, then I revert it back to the original version, which used to work. Then the problem solved.



                I also notice one error occurred (but not always captured) in my celery workers when I use the newly built image:




                Unrecoverable error: AttributeError("'float' object has no attribute 'items'",)




                So find that it is related to the latest redis release (Celery will use redis), you can find more details.






                share|improve this answer













                I do notice that this happens when I am playing around with some of the airflow config and rebuild our docker airflow image, then I revert it back to the original version, which used to work. Then the problem solved.



                I also notice one error occurred (but not always captured) in my celery workers when I use the newly built image:




                Unrecoverable error: AttributeError("'float' object has no attribute 'items'",)




                So find that it is related to the latest redis release (Celery will use redis), you can find more details.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 22 '18 at 3:37









                Kevin LiKevin Li

                932615




                932615






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422644%2fairflow-scheduler-not-pick-up-tasks-task-waiting-forever%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    404 Error Contact Form 7 ajax form submitting

                    How to know if a Active Directory user can login interactively

                    Refactoring coordinates for Minecraft Pi buildings written in Python