scope counter/start/end line updates to the current job for firehose.py

This commit is contained in:
Ryan Petrello 2020-02-19 16:15:09 -05:00
parent 4dee5eddeb
commit 46fceb03a5
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -219,7 +219,8 @@ def generate_events(events, job):
"UPDATE main_jobevent SET "
"counter=nextval('firehose_seq')::integer,"
"start_line=nextval('firehose_line_seq')::integer,"
"end_line=currval('firehose_line_seq')::integer + 2"
"end_line=currval('firehose_line_seq')::integer + 2 "
f"WHERE job_id={job}"
)
conn.commit()
finally: