mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
scope counter/start/end line updates to the current job for firehose.py
This commit is contained in:
@@ -219,7 +219,8 @@ def generate_events(events, job):
|
|||||||
"UPDATE main_jobevent SET "
|
"UPDATE main_jobevent SET "
|
||||||
"counter=nextval('firehose_seq')::integer,"
|
"counter=nextval('firehose_seq')::integer,"
|
||||||
"start_line=nextval('firehose_line_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()
|
conn.commit()
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user