forked from apache/airflow
/
dag_details.html
117 lines (112 loc) · 3.23 KB
/
dag_details.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{#
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
#}
{% extends "airflow/dag.html" %}
{% block page_title %}{{ dag.dag_id }} - {{ title }} - Airflow{% endblock %}
{% block content %}
{{ super() }}
<h3>{{ title }}</h3>
<div>
{% for state, count in states %}
<a
class="btn"
style="border: 0; background-color:{{ State.color(state)}}; color: {{ State.color_fg(state) }};"
href="{{ url_for('TaskInstanceModelView.list', _flt_3_dag_id=dag.dag_id, _flt_3_state=state) }}">
{{ state }} <span class="badge">{{ count }}</span>
</a>
{% endfor %}
</div>
<br>
<table class="table table-striped table-bordered">
{% if dag.parent_dag is defined and dag.parent_dag %}
<tr>
<th>Parent DAG</th>
<td>
<a href="{{ url_for('Airflow.' + dag.default_view, dag_id=dag.parent_dag.dag_id) }}">{{ dag.parent_dag.dag_id }}</a>
</td>
</tr>
{% endif %}
<tr>
<th>Schedule Interval</th>
<td>{{ dag.schedule_interval }}</td>
</tr>
<tr>
<th>Catchup</th>
<td>{{ dag.catchup }}</td>
</tr>
{% if dag.catchup %}
<tr>
<th>Start Date</th>
<td class="js-format-date">{{ dag.start_date }}</td>
</tr>
{% else %}
<tr>
<th>Started</th>
<td>{{ states|length > 0 }}</td>
</tr>
{% endif %}
<tr>
<th>End Date</th>
<td>{{ dag.end_date }}</td>
</tr>
<tr>
<th>Max Active Runs</th>
<td>{{ active_runs | length }} / {{ dag.max_active_runs }}</td>
</tr>
<tr>
<th>Concurrency</th>
<td>{{ dag.concurrency }}</td>
</tr>
<tr>
<th>Default Args</th>
<td><code>{{ dag.default_args }}</code></td>
</tr>
<tr>
<th>Tasks Count</th>
<td>{{ dag.tasks|length }}</td>
</tr>
<tr>
<th>Task IDs</th>
<td>{{ dag.task_ids }}</td>
</tr>
<tr>
<th>Filepath</th>
<td>{{ dag.filepath }}</td>
</tr>
<tr>
<th>Owner</th>
<td>{{ dag.owner }}</td>
</tr>
<tr>
<th>Tags</th>
<td>
{% if tags is defined and tags %}
{% for tag in tags | sort(attribute='name') %}
<a class="label label-info"
href="/home?tags={{ tag.name }}"
style="margin: 3px 6px 3px 0;"
title="All DAGs tagged “{{ tag.name }}”"
>
{{ tag.name }}
</a>
{% endfor %}
{% else %}
None
{% endif %}
</td>
</tr>
</table>
{% endblock %}