airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ash Berlin-Taylor <>
Subject Re: Manipulating the DAG Code View?
Date Tue, 13 Aug 2019 18:47:16 GMT
Be carefully doing that in 1.10.4 - if you change that you may find your dags don't run anymore!

On 13 August 2019 19:46:01 BST, Chris Palmer <> wrote:
>A more involved PR like you suggest might be valuable in the long run,
>in the short term I've been successful in the past with simply
>the fileloc attribute of DAGs. It get's set here
>to the previous frame, but you could override it once you've created
>DAG object.
>On Tue, Aug 13, 2019 at 2:31 PM Shaw, Damian P. <
>> wrote:
>> Hi all,
>> I'm in need of being able to manipulate the code view for many of my
>> which are generated by a single Python script that reads config
>files. My
>> DAG creation script is getting increasingly less useful to the end
>users so
>> I would like to instead present the config file that was used to
>> the DAG.
>> I took a look at the relevant code vide code in Airflow:
>> It seems it would be a relatively easy change to add an extra option
>> the DAG, e.g. "dag.code_display_file" and maybe also a Lexer option,
>> detect if this option has been set for the DAG in the above location
>> display the specified file instead.
>> I don't have any experience contributing to open source projects of
>> size, would this be a welcome pull request? I'd rather not waste
>> time if it isn't.
>> Thanks,
>> Damian
>> Please access the attached hyperlink for an important electronic
>> communications disclaimer:

  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message