Skip to content

Commit

Permalink
FIX: Only add resource request attributes if non-None
Browse files Browse the repository at this point in the history
skipci
  • Loading branch information
cortadocodes committed Feb 5, 2025
1 parent 31fc7bb commit 9eca502
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions octue/cloud/events/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ def make_attributes(
"sender_sdk_version": LOCAL_SDK_VERSION,
"recipient": recipient,
"retry_count": int(retry_count),
"cpus": cpus,
"memory": memory,
"ephemeral_storage": ephemeral_storage,
}

if sender_type == "PARENT":
Expand All @@ -88,5 +85,6 @@ def make_attributes(

attributes["forward_logs"] = bool(forward_logs)
attributes["save_diagnostics"] = save_diagnostics
attributes.update(make_minimal_dictionary(cpus=cpus, memory=memory, ephemeral_storage=ephemeral_storage))

return attributes

0 comments on commit 9eca502

Please sign in to comment.