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 77F2A200B64 for ; Tue, 2 Aug 2016 16:55:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 76788160A76; Tue, 2 Aug 2016 14:55:14 +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 BE355160A65 for ; Tue, 2 Aug 2016 16:55:13 +0200 (CEST) Received: (qmail 94059 invoked by uid 500); 2 Aug 2016 14:55:12 -0000 Mailing-List: contact dev-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 dev@airflow.incubator.apache.org Received: (qmail 94047 invoked by uid 99); 2 Aug 2016 14:55:12 -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; Tue, 02 Aug 2016 14:55:12 +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 057DE1A52A1 for ; Tue, 2 Aug 2016 14:55:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.299 X-Spam-Level: * X-Spam-Status: No, score=1.299 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=lumoslabs-com.20150623.gappssmtp.com 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 fXAi7CsiPFaB for ; Tue, 2 Aug 2016 14:55:09 +0000 (UTC) Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id B30C95F487 for ; Tue, 2 Aug 2016 14:55:09 +0000 (UTC) Received: by mail-it0-f53.google.com with SMTP id f6so203227151ith.0 for ; Tue, 02 Aug 2016 07:55:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lumoslabs-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=5lzf+nIXQR9XrtCZGUrbJrqiw24zM9rA639Qtcmnjhw=; b=Vb7kYxAbWrqvycKdROcjxcorhOOLfXSIYNoD8v6rjtGgn0ia8v4orIapFKbD3HfTJr LjfOhLAA7fKNVRy8IYlAluJB1GldAITAFzONYZkz8koHcvNr9vpqqqvtHIsvIsPuSmpz zZiLy5NkRFDbKjybQumjOo0X0cXYZZL09HKeT9Lq77BoB+Jdzr0W0z37ZfjjEnbdRyG6 klZFLTVrUmwcnk6WWfOW2Sy3EIgIj3RSXo6IgoHTdkjRx54hOdIdTCbVn6bKnSrRyCC3 iSHbp3QYaSHkQu9wALsdjxa+Z+P8/F+uBILKz/fnAYkmZZFfGIXbs+YctFcZe0El7yUa 6AsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5lzf+nIXQR9XrtCZGUrbJrqiw24zM9rA639Qtcmnjhw=; b=jJSNgb1cA6aAS6rs+lsp+Pon/2Kj10SuKMS2KbBf6XE8+YEQ4WO5euQKt5eu5wh5oJ lTWIaKPOCslAbRzVnQ+v1OzTZUD6QzIiURxCGseW3uDXNOJRgq0GHSQMC6K8xFufdoGl Q6BE1++8h8424C9V2pCTxsGw315zRMdVCsXsKL8wPT/z1HL8z0c0yH1EXvB3Zowl6Cso JJ7INPRVsDBbagRgFJTmNvq6xbjZAbBEoiUn44s9XA1HPm644T/xmAQg77558yp6ujb8 RpnQa340P2CCiRzHBvLhUv+R2h3Ee3gO0Tqv/GambbkcvfJDHcngv/D5EXZ46Roogqyy a64A== X-Gm-Message-State: AEkoousYJyo7UNg3LBw568mlxZIApIciNj+tkuKwwC4PvDcLuCwNb4K44Sj/Nt9Im2YbSD8zyYSLefDpjacjdohD X-Received: by 10.36.101.195 with SMTP id u186mr59502316itb.80.1470149702982; Tue, 02 Aug 2016 07:55:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.17.220 with HTTP; Tue, 2 Aug 2016 07:55:02 -0700 (PDT) From: Arthur Purvis Date: Tue, 2 Aug 2016 07:55:02 -0700 Message-ID: Subject: What is the best way to retry an entire DAG instead of just a single task? To: dev@airflow.incubator.apache.org Content-Type: multipart/alternative; boundary=001a1143ce1ad05fbf053917e6c5 archived-at: Tue, 02 Aug 2016 14:55:14 -0000 --001a1143ce1ad05fbf053917e6c5 Content-Type: text/plain; charset=UTF-8 Apologies if this is a dumb question, but I'm looking for a way to retry an entire DAG if a single task fails, rather than retry just that task. The context is that of a job starter + sensor, and if the sensor fails it means the job needs to be restarted, not just re-sensored. From reading the documentation it seems like TriggerDagRunOperator could be cajoled into doing this, but it feels a little... clunky. Is this indeed the best way to restart an entire DAG when one of the tasks fails? Thanks. --001a1143ce1ad05fbf053917e6c5--