Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 90B7A200B62 for ; Fri, 29 Jul 2016 00:15:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8F56F160A85; Thu, 28 Jul 2016 22:15:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D693C160A94 for ; Fri, 29 Jul 2016 00:15:25 +0200 (CEST) Received: (qmail 15377 invoked by uid 500); 28 Jul 2016 22:15:25 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 15368 invoked by uid 99); 28 Jul 2016 22:15:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2016 22:15:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B13121A037C for ; Thu, 28 Jul 2016 22:15:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.446 X-Spam-Level: X-Spam-Status: No, score=-5.446 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6oIb1ZI2toqV for ; Thu, 28 Jul 2016 22:15:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 9DEA060CDB for ; Thu, 28 Jul 2016 22:15:21 +0000 (UTC) Received: (qmail 15179 invoked by uid 99); 28 Jul 2016 22:15:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2016 22:15:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F2C822C0059 for ; Thu, 28 Jul 2016 22:15:20 +0000 (UTC) Date: Thu, 28 Jul 2016 22:15:20 +0000 (UTC) From: "Vineet Goel (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-363) Celery Queue becoming too huge when worker unavailable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 28 Jul 2016 22:15:26 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15398302#comment-15398302 ] Vineet Goel commented on AIRFLOW-363: ------------------------------------- [~criccomini] Its good to know that periodic scheduler restarts aren't required anymore :) > Celery Queue becoming too huge when worker unavailable > ------------------------------------------------------ > > Key: AIRFLOW-363 > URL: https://issues.apache.org/jira/browse/AIRFLOW-363 > Project: Apache Airflow > Issue Type: Bug > Components: celery > Affects Versions: Airflow 1.7.1.3 > Reporter: Vineet Goel > > The scheduler currently queues executable tasks every run of the scheduler. I ran into an issue where I was using a single worker and my dag was composed of a bunch of tasks that could run simultaneously. I was setting a concurrency on the worker to control how many of those tasks could run at the same time. However, my scheduler kept queueing more and more tasks. This can cause a HUGE back pressure on the celery queue, which becomes unmanageable at times. > We should set the http://docs.celeryproject.org/en/latest/configuration.html#celery-event-queue-ttl > configuration to handle this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)