Skip to content

Commit 6f128d9

Browse files
committed
fix to add the endpoint on webhook responses
1 parent 2d89c11 commit 6f128d9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def wrapper(*args, **kwargs):
121121

122122
# Build response object
123123
response_obj = {
124+
"endpoint": response[1],
124125
"code": response[2],
125126
"id": data.get("id"),
126127
"job_id": job_id,
@@ -131,6 +132,7 @@ def wrapper(*args, **kwargs):
131132
"total_time": round(run_time, 3),
132133
"pid": pid,
133134
"queue_id": execution_name,
135+
"queue_length": 0,
134136
"build_number": BUILD_NUMBER
135137
}
136138

@@ -239,8 +241,9 @@ def wrapper(*args, **kwargs):
239241

240242
response = f(job_id=job_id, data=data, *args, **kwargs)
241243
run_time = time.time() - start_time
242-
244+
243245
response_obj = {
246+
"endpoint": response[1],
244247
"code": response[2],
245248
"id": data.get("id"),
246249
"job_id": job_id,

0 commit comments

Comments
 (0)