Add source reference for SQL query string
This commit is contained in:
parent
11c85ba378
commit
03a35834a1
1 changed files with 1 additions and 0 deletions
|
@ -155,6 +155,7 @@ class MonitoringDB:
|
|||
|
||||
@staticmethod
|
||||
def build_query(jobid, interval):
|
||||
"""Query taken from https://kb.hlrs.de/monitoring/index.php/TimescaleDB_-_Query_Guidelines#Power_by_Job_Query"""
|
||||
import sqlalchemy as db
|
||||
query_string = """with job as (
|
||||
select job_id, starttime, endtime, nodes from jobs where job_id='{jobid}.hawk-pbs5'
|
||||
|
|
Loading…
Reference in a new issue