We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df28e3c commit e58d471Copy full SHA for e58d471
1 file changed
infrastructure/lambdas/submit_build/index.py
@@ -86,17 +86,20 @@ def handler(event, context):
86
})
87
88
# --- Queue for processing ---
89
- sqs.send_message(
90
- QueueUrl=QUEUE_URL,
91
- MessageBody=json.dumps({
+ send_kwargs = {
+ "QueueUrl": QUEUE_URL,
+ "MessageBody": json.dumps({
92
"build_id": build_id,
93
"python_version": python_version,
94
"architectures": architectures,
95
"requirements": requirements,
96
"single_file": single_file,
97
}),
98
- MessageGroupId=build_id[:8] if QUEUE_URL.endswith(".fifo") else None,
99
- )
+ }
+ if QUEUE_URL.endswith(".fifo"):
100
+ send_kwargs["MessageGroupId"] = build_id[:8]
101
+
102
+ sqs.send_message(**send_kwargs)
103
104
return _response(200, {
105
0 commit comments