airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerard Toonstra <gtoons...@gmail.com>
Subject Re: Changing the crontab for a DAG
Date Tue, 25 Oct 2016 10:38:10 GMT
cron expressions:
https://airflow.incubator.apache.org/scheduler.html#dag-runs

On Tue, Oct 25, 2016 at 12:23 PM, Manning, Kieran (Consultant) <
Kieran.Manning@consultant.renre.com> wrote:

> Hi all,
>
> Sorry to piggyback on this question thread but I have something similar.
> We need to be able to schedule daily DAG runs with a configurable start
> time.
>
> Whatever start_date I provide, the actual start time seems to be set at
> midnight when the schedule is set to daily.
>
> Is there a means to change this?
>
> Thanks,
> Kieran
>
> -----Original Message-----
> From: wget.null@gmail.com [mailto:wget.null@gmail.com]
> Sent: Tuesday, October 25, 2016 11:10 AM
> To: David Batista <dba@hellofresh.com>; dev@airflow.incubator.apache.org
> Subject: RE: Changing the crontab for a DAG
>
> Hi David,
>
> For me worked:
> 1. Disable the DAG
> 2. Refresh
> 3. Edit the schedule_interval
> 4. Refresh the DAG
> 5. Enable
>
> You also should edit the start_date to avoid backfilled runs.
>
> --alex
>
> --
> B: mapredit.blogspot.com
>
> From: David Batista
> Sent: Tuesday, October 25, 2016 11:48 AM
> To: dev@airflow.incubator.apache.org
> Subject: Changing the crontab for a DAG
>
> Hi everyone,
>
> Just a quick question, if you have a running DAG (i.e., runs daily for
> instance), and at a certain point you want to update the crontab, for
> instance, change the hour on which it runs.
>
> Usually, want I do, is to clear all the past tasks with the old crontab,
> and update the the start_date of the DAG, to be equal to the day when the
> the hour changed.
>
> Nevertheless, sometimes, it happens that the DAG starts running with the
> old hour (before the change)
>
> What is the best way to deal with this, changing, let's say the hour, for
> a running a DAG?
>
> Best regards,
> David Batista
>
> --
>
> [image: logo]
>   <http://www.facebook.com/hellofreshde>   <http://twitter.com/
> HelloFreshde>
>    <http://instagram.com/hellofreshde/>   <http://blog.hellofresh.de/>
> <https://app.adjust.com/ayje08?campaign=Hellofresh&
> deep_link=hellofresh%3A%2F%2F&post_deep_link=https%3A%2F%
> 2Fwww.hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_
> source%3Demail_signature&fallback=https%3A%2F%2Fwww.
> hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_source%
> 3Demail_signature>
>
> *HelloFresh App –Download Now!*
> <https://app.adjust.com/ayje08?campaign=Hellofresh&
> deep_link=hellofresh%3A%2F%2F&post_deep_link=https%3A%2F%
> 2Fwww.hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_
> source%3Demail_signature&fallback=https%3A%2F%2Fwww.
> hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_source%
> 3Demail_signature>
> *We're active in:*
> US <https://www.hellofresh.com/?utm_medium=email&utm_source=
> email_signature>
>  |  DE
> <https://www.hellofresh.de/?utm_medium=email&utm_source=email_signature>
> | UK <https://www.hellofresh.co.uk/?utm_medium=email&utm_source=
> email_signature>
> |  NL
> <https://www.hellofresh.nl/?utm_medium=email&utm_source=email_signature>
> | AU <https://www.hellofresh.com.au/?utm_medium=email&utm_
> source=email_signature>
>  |  BE
> <https://www.hellofresh.be/?utm_medium=email&utm_source=email_signature>
> | AT <https://www.hellofresh.at/?utm_medium=email&utm_source=
> email_signature>
> |  CH
> <https://www.hellofresh.ch/?utm_medium=email&utm_source=email_signature>
> | CA <https://www.hellofresh.ca/?utm_medium=email&utm_source=
> email_signature>
>
> www.HelloFreshGroup.com
> <http://www.hellofreshgroup.com/?utm_medium=email&utm_
> source=email_signature>
>
> We are hiring around the world – Click here to join us <
> https://www.hellofresh.com/jobs/?utm_medium=email&utm_
> source=email_signature>
>
> --
>
> <https://www.hellofresh.com/jobs/?utm_medium=email&utm_
> source=email_signature>
> HelloFresh AG, Berlin (Sitz der Gesellschaft) | Vorstände: Dominik S.
> Richter (Vorsitzender), Thomas W. Griesel, Christian Gärtner |
> Vorsitzender des Aufsichtsrats: Jeffrey Lieberman | Eingetragen beim
> Amtsgericht Charlottenburg, HRB 171666 B | USt-Id Nr.: DE 302210417
>
> *CONFIDENTIALITY NOTICE:* This message (including any attachments) is
> confidential and may be privileged. It may be read, copied and used only by
> the intended recipient. If you have received it in error please contact the
> sender (by return e-mail) immediately and delete this message. Any
> unauthorized use or dissemination of this message in whole or in parts is
> strictly prohibited.
>
>
>
> Please note this email message has been sent to you by a third-party
> contractor or consultant engaged by RenaissanceRe Services Ltd. or one of
> its affiliates (collectively "the Company"). Please note this party has no
> authority to bind the Company in any respect, contractually or otherwise.
> For your protection, you should only ever accept instructions which would
> bind the Company from a direct employee of the Company. Third-party
> contractors or consultants are not granted such authority.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message