Skip to content

Commit

Permalink
FIX: Fix resource request names
Browse files Browse the repository at this point in the history
skipci
  • Loading branch information
cortadocodes committed Feb 5, 2025
1 parent 44277cf commit 9c757a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/event_handler/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def _dispatch_question_as_kueue_job(event, attributes):

resources = {
"requests": {
"cpus": attributes.get("resources_cpu", int(os.environ["QUESTION_DEFAULT_CPUS"])),
"memory": attributes.get("resource_memory", os.environ["QUESTION_DEFAULT_MEMORY"]),
"cpu": attributes.get("cpus", int(os.environ["QUESTION_DEFAULT_CPUS"])),
"memory": attributes.get("memory", os.environ["QUESTION_DEFAULT_MEMORY"]),
"ephemeral_storage": attributes.get("ephemeral_storage", os.environ["QUESTION_DEFAULT_EPHEMERAL_STORAGE"]),
}
}
Expand Down

0 comments on commit 9c757a6

Please sign in to comment.