You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/06/29 13:21:11 UTC
[airflow] 05/37: Add a tip to trigger DAG screen (#9049)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit e0ed57f52372e26b7dd97433e77e95f7b7e19092
Author: Kamil BreguĊa <mi...@users.noreply.github.com>
AuthorDate: Thu May 28 13:40:51 2020 +0200
Add a tip to trigger DAG screen (#9049)
(cherry-picked from 52c7862)
---
airflow/www/templates/airflow/trigger.html | 3 +++
airflow/www_rbac/templates/airflow/trigger.html | 3 +++
2 files changed, 6 insertions(+)
diff --git a/airflow/www/templates/airflow/trigger.html b/airflow/www/templates/airflow/trigger.html
index 483981e..9eb9c78 100644
--- a/airflow/www/templates/airflow/trigger.html
+++ b/airflow/www/templates/airflow/trigger.html
@@ -30,6 +30,9 @@
<label for="conf">Configuration JSON (Optional)</label>
<textarea class="form-control" name="conf">{{ conf }}</textarea>
</div>
+ <p>
+ To access configuration in your DAG use <code>{{ '{{' }} dag_run.conf {{ '}}' }}</code>.
+ </p>
<input class="btn btn-primary" type="submit" value="Trigger"/>
<button class="btn" onclick="location.href = '{{ origin }}'; return false">bail.</button>
</form>
diff --git a/airflow/www_rbac/templates/airflow/trigger.html b/airflow/www_rbac/templates/airflow/trigger.html
index ee4ecc8..73f95c3 100644
--- a/airflow/www_rbac/templates/airflow/trigger.html
+++ b/airflow/www_rbac/templates/airflow/trigger.html
@@ -30,6 +30,9 @@
<label for="conf">Configuration JSON (Optional)</label>
<textarea class="form-control" name="conf">{{ conf }}</textarea>
</div>
+ <p>
+ To access configuration in your DAG use <code>{{ '{{' }} dag_run.conf {{ '}}' }}</code>.
+ </p>
<input class="btn btn-primary" type="submit" value="Trigger"/>
<button class="btn" onclick="location.href = '{{ origin }}'; return false">bail.</button>
</form>