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 30811200BFF for ; Tue, 17 Jan 2017 10:28:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 27F58160B46; Tue, 17 Jan 2017 09:28:35 +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 70B41160B43 for ; Tue, 17 Jan 2017 10:28:34 +0100 (CET) Received: (qmail 32278 invoked by uid 500); 17 Jan 2017 09:28:33 -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 32266 invoked by uid 99); 17 Jan 2017 09:28:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2017 09:28:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D8B0FC0744 for ; Tue, 17 Jan 2017 09:28:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id uWgU9CwE9N-3 for ; Tue, 17 Jan 2017 09:28:30 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E2F0E5FB5D for ; Tue, 17 Jan 2017 09:28:29 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id f144so15890451pfa.2 for ; Tue, 17 Jan 2017 01:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:date:subject:from:to:message-id:thread-topic:references :in-reply-to:mime-version:content-transfer-encoding; bh=RtJH1WUb2c9K+2nycSip3XHrUqlo1EPnwbb1NpMLCCU=; b=QJhGoXtbmVsbdOACVOxB8xq+TR6gLm59vdGSqweRO6ey7Y8iuumigfueVgDN3xPNMp Z5YkQx1bnHWfJbEAcB+tw8mJ5a8Ux5TUjyUoFDO5toQAp+Jv17UnPlpCT1VfkW9t3xf/ pz5Tl++Xm0X1KFI418U9beCOBJb1f34jX1W70A2nF6Jjo2X+LTvWG8Wiyk1+9Qackl2T 4lPYi/e/rlkPYmURYapVkTRPQ5YXUOwnZWqxjeUQOzkzE12zRDj74QCItcERB3rQf7uu rQ+64ABZi0biRwnKIGeoF+IU8F8OSmMl5VL4+TiFslkC2iRmRoQouJ+5vqgxZSllIhVp oIjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:date:subject:from:to:message-id :thread-topic:references:in-reply-to:mime-version :content-transfer-encoding; bh=RtJH1WUb2c9K+2nycSip3XHrUqlo1EPnwbb1NpMLCCU=; b=c6GJRqhohCoJUWTh2WeB/Udc0ig69ZD6onAxMXL1mjcIEUXreiyvVl120Isj6Lbnlz 8gVIoidgwnN6rJ8ySwS/zBkXLZlBx6WBLoB4i3LP6KcmGLDlYcPPzuUsiAh8voAzL3aa RWnqBZPMKZjSMvb2+1/c9u4WoAxCGoHHlltecnbU3WjMxpyfvu//g+cFs4GXUoV80isZ UDCYnpv2AfhQePVnetYqorXOniUp3HWn/zCXdTgdBvT/KUf8tm8YcV6d1I1fTfpBo0yb x7b0AdBTO0gO1kPOJvtEgbhkCUzRnpExb2UO7iR536k2Vdp/D4c4dvrUXht9XRUIbyDb hjsg== X-Gm-Message-State: AIkVDXJu466ch/LtWHKG50PfhbfrJilCmez63bYpcPTkapNHTjmLPdgpEkGU5cq8HpZs7A== X-Received: by 10.99.109.143 with SMTP id i137mr45055246pgc.11.1484645308377; Tue, 17 Jan 2017 01:28:28 -0800 (PST) Received: from [192.168.31.127] ([49.206.116.156]) by smtp.gmail.com with ESMTPSA id q145sm53832795pfq.22.2017.01.17.01.28.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 01:28:27 -0800 (PST) User-Agent: Microsoft-MacOutlook/f.18.0.160707 Date: Tue, 17 Jan 2017 14:58:23 +0530 Subject: Re: Programatically generating DAGs From: Arvind Nedumaran To: Message-ID: <817D137C-6DAF-4EDD-AB74-5BAD959276B9@gmail.com> Thread-Topic: Programatically generating DAGs References: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="UTF-8" Content-transfer-encoding: 7bit archived-at: Tue, 17 Jan 2017 09:28:35 -0000 Hello Ludovic, Thank you so much. Things are a lot clearer now. Looks like there is a way to make this work for us. Have a nice day, Arvind On 16/01/17, 22:30, "Ludovic Claude" wrote: Hello Arvind, DAGs in Airflow are simple Python objects that only need to be registered in the globals namespace. It's easy to generate DAGs from some configuration or database, I'm using that for example to generate several image processing pipelines based on configuration. Here is an example: https://github.com/LREN-CHUV/airflow-mri-preprocessing-dags/blob/master/mri_pipelines_init.py Ludovic 2017-01-16 12:28 GMT+01:00 Arvind Nedumaran : > Hello everyone, > > I'm new to Airflow and I'm evaluating it for implementation at our org. I > find that there are a lot of use cases where workflows are not known during > development. Is there a way to programatically generate, and manage DAGs. > > Better yet, is there a way to manage them directly from a DB instead of > generating them from templates and managing them as files. We're about to > spend considerable time implementing this, so I just want to know about the > various existing options. > > Does it help if the tasks are pre-defined and the DAGs only happen to be > some permutation of the pre-existing tasks? > > Anybody who's tried something like before, I'd be grateful for any input on > this issue. > > Thanks, > Arvind >