diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/templates/edge_worker_hosts.html b/providers/edge3/src/airflow/providers/edge3/plugins/templates/edge_worker_hosts.html deleted file mode 100644 index 6fc82b63ac966..0000000000000 --- a/providers/edge3/src/airflow/providers/edge3/plugins/templates/edge_worker_hosts.html +++ /dev/null @@ -1,175 +0,0 @@ -{# - 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 base_template %} - - {% block title %} - Edge Worker Hosts - {% endblock %} - - {% block content %} -

Edge Worker Hosts

- {% if hosts|length == 0 %} -

No Edge Workers connected or known currently.

- {% else %} - - - - - - - - - - - - - - - {% for host in hosts %} - - - - - - - - - - {%- if host.state in ["idle", "running"] -%} - - - {%- elif host.state in ["maintenance pending", "maintenance mode", "maintenance request"] -%} - - - - {%- elif host.state in ["offline", "unknown", "offline maintenance"] -%} - - - - {%- else -%} - - {% endif %} - - {% endfor %} -
HostnameStateQueuesFirst OnlineLast Heart BeatActive JobsSystem InformationOperations
{{ host.worker_name }} - {%- if host.state in["offline", "offline maintenance"] -%} - {{ host.state }} - {%- elif host.state == "unknown" -%} - {{ host.state }} - {%- elif host.last_update.timestamp() <= five_min_ago.timestamp() -%} - Reported {{ host.state }} - but no heartbeat - {%- elif host.state in ["starting", "maintenance request", "maintenance exit"] -%} - {{ host.state }} - {%- elif host.state == "running" -%} - {{ host.state }} - {%- elif host.state == "idle" -%} - {{ host.state }} - {%- elif host.state == "terminating" -%} - {{ host.state }} - {%- elif host.state in ["maintenance pending", "maintenance mode"] -%} - {{ host.state }} - {%- else -%} - {{ host.state }} - {%- endif -%} - - {% if host.queues %} -
    - {% for item in host.queues %} -
  • - {{ item }} -
  • - {% endfor %} -
- {% else %} - (all) - {% endif %} -
{% if host.last_update %}{% endif %} - {{ host.jobs_active }} - -
    - {% for item in host.sysinfo_json %} -
  • {{ item }}: {{ host.sysinfo_json[item] }}
  • - {% endfor %} -
-
- -
-
- {{ host.maintenance_comment }} - - Edit - - -
- - -
- - -
-
- - -
- {% endif %} - {% endblock %} - diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/templates/edge_worker_jobs.html b/providers/edge3/src/airflow/providers/edge3/plugins/templates/edge_worker_jobs.html deleted file mode 100644 index 86c2eb01391fc..0000000000000 --- a/providers/edge3/src/airflow/providers/edge3/plugins/templates/edge_worker_jobs.html +++ /dev/null @@ -1,69 +0,0 @@ -{# - 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 base_template %} - - {% block title %} - Edge Worker Jobs - {% endblock %} - - {% block content %} -

Edge Worker Jobs

- {% if jobs|length == 0 %} -

No jobs running currently

- {% else %} - - - - - - - - - - - - - - - - {% for job in jobs %} - - - - - - - - - - - - - {% endfor %} -
DAG IDRun IDTask IDMap IndexTry NumberStateQueueQueued DTTMEdge WorkerLast Update
{{ job.dag_id }}{{ job.run_id }}{{ job.task_id }}{% if job.map_index >= 0 %}{{ job.map_index }}{% else %}-{% endif %}{{ job.try_number }}{{ html_states[job.state] }} - {{ job.queue }} - - {% if job.edge_worker %} - {{ job.edge_worker }} - {% endif %} - {% if job.last_update %}{% endif %}
- {% endif %} - {% endblock %} -