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 10801200CD3 for ; Fri, 28 Jul 2017 18:00:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0EF7F16CB9B; Fri, 28 Jul 2017 16:00:51 +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 5432A16CB94 for ; Fri, 28 Jul 2017 18:00:50 +0200 (CEST) Received: (qmail 35220 invoked by uid 500); 28 Jul 2017 16:00:49 -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 35203 invoked by uid 99); 28 Jul 2017 16:00:49 -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; Fri, 28 Jul 2017 16:00:49 +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 786E8C0118 for ; Fri, 28 Jul 2017 16:00:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=credijusto-com.20150623.gappssmtp.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 yo15gJYFRFA7 for ; Fri, 28 Jul 2017 16:00:46 +0000 (UTC) Received: from mail-ua0-f178.google.com (mail-ua0-f178.google.com [209.85.217.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 377FA60CD9 for ; Fri, 28 Jul 2017 16:00:40 +0000 (UTC) Received: by mail-ua0-f178.google.com with SMTP id q25so148023556uah.1 for ; Fri, 28 Jul 2017 09:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=credijusto-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=akFgBVrJwyWhoOiSU0mC2Dl8/04RtmKmOsgIiMs+6U0=; b=19krf5llg4jpQpMNU1WAs4Kf3ckfTPG3Gr6cmxuC0x/ZcoWuXifp7G+91Nry1NcXnd o808uOOEWy9Q2Jdaz4VqRygubPaporFi1S9vWTEyGgWv4f7wTSmoNM4QvegNaaOJkifE AxFyKXIF3xY/vIhSUtlSrQQUIIOjYwkS/fQuehdaBBFXJlfmtx3lNRt/x+qbavx1b6aF bE0HwqA9KhewQgP+ACubS8BWQufQFVRYkTTaMAFUL2YipuGpxrRCrX68xH++9fspYAAY qQG2ivKzcCwuCVhYUiqbIxhjmqhMG1dPRsqLvtVmtpJpTrOsMGIt+URONhTr58qPI+EZ XcLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=akFgBVrJwyWhoOiSU0mC2Dl8/04RtmKmOsgIiMs+6U0=; b=JfntPooC8jnXS+NwdCXD4uqPqF/olaVLubdXlmHJLqlVDcKTXLWUerBlukY1kDWGHm 3gPItOgjKpzKcV6YmnXMuqmF9Gm535KGmUxIpCTCccNV1xm4cs3UfX7hO4REn4Ik7wNe teoBBfrsJNNFHUVZYYoPS+VrGfrPMY+eU1BxXmuvVYQSlnrSQIG9IEWoQzSgNRSrb9jd G/IiTEGE5iEQE6+0QX4lqi0wTD7n8lqO9Zu/BWs9izp3X13pzsVkN1dTsd4S9FcqCmin OY4EejDPLoxGFTthkjMuXBQucaUqNLif3xyMB7BIKf/0dJjt48ASUTKz8Y3TzTjiaoLh /3Ow== X-Gm-Message-State: AIVw113J/4AZ2CODnv/XxZ5Jd4ldLyniTettSdw9n4ZNe2Qsl5y1Lckz q659zv0FvKDdj1rvKpGtWykTmi7Dpa39B+aU2O0CURjNqZLh76S0gSJi/DG7B3B4xMb0aniJzmU vQMKISOagddeom3Mgcb9N5YyOuWlPWum+h/s= X-Received: by 10.176.23.204 with SMTP id p12mr5818477uaf.156.1501257638927; Fri, 28 Jul 2017 09:00:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.70.97 with HTTP; Fri, 28 Jul 2017 09:00:38 -0700 (PDT) From: Aaron Polhamus Date: Fri, 28 Jul 2017 11:00:38 -0500 Message-ID: Subject: Possible bug in bitshift operator? To: dev@airflow.incubator.apache.org Content-Type: multipart/alternative; boundary="f403043ecd5c494a6d055562c83f" archived-at: Fri, 28 Jul 2017 16:00:51 -0000 --f403043ecd5c494a6d055562c83f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've run into an issue using bitshift operators to define task dependencies in my DAG (this question is here on StackOverflow as well). I've pasted code in, below. What this looks like it *should* do is that preproc_task will run first, followed by clear_tables. What it actually *does* do, which is the behavior that I want to it have, is run clear_tables first, followed by parallel execution of a bunch of preproc_task operations defined by different user IDs. The dependency relationship seems like it's reversed. I'm choosing between proper syntax and the wrong behavior and improper syntax and the right behavior. How can I debug this? from datetime import datetimeimport osimport sys from airflow.models import DAGfrom airflow.operators.python_operator import PythonOperator import ds_dependencies SCRIPT_PATH =3D os.getenv('DASH_PREPROC_PATH')if SCRIPT_PATH: sys.path.insert(0, SCRIPT_PATH) import dash_workerselse: print('Define DASH_PREPROC_PATH value in environmental variables') sys.exit(1) ENV =3D os.environ default_args =3D { 'start_date': datetime.now(),} DAG =3D DAG( dag_id=3D'dash_preproc', default_args=3Ddefault_args) clear_tables =3D PythonOperator( task_id=3D'clear_tables', python_callable=3Ddash_workers.clear_db, dag=3DDAG) def id_worker(uid): return PythonOperator( task_id=3Did, python_callable=3Ddash_workers.main_preprocess, op_args=3D[uid], dag=3DDAG) for uid in dash_workers.get_id_creds(): preproc_task =3D id_worker(uid) clear_tables << preproc_task --=20 *Aaron Polhamus* *Director of Data Science * Cel (M=C3=A9xico): +52 (55) 1951-5612 Cell (USA): +1 (206) 380-3948 Tel: +52 (55) 1168 9757 - Ext. 181 --=20 ***Por favor referirse a nuestra p=C3=A1gina web=20 para m=C3=A1s informaci= =C3=B3n=20 acerca de nuestras pol=C3=ADticas de privacidad.* --f403043ecd5c494a6d055562c83f--