Skip to content

Commit

Permalink
add type conversion (#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
timburke-hackit authored Nov 22, 2023
1 parent ffdd08a commit 14ddf0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambdas/calculate_max_concurrency/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ def calculate_max_concurrency(available_ips: int, ips_per_job: int) -> int:


def lambda_handler(event, context):
available_ips = event["AvailableIPs"]
ips_per_job = event["Workers"]
available_ips = int(event["AvailableIPs"])
ips_per_job = int(event["Workers"])
max_concurrency = calculate_max_concurrency(available_ips, ips_per_job)
return {"max_concurrency": max_concurrency}

Expand Down

0 comments on commit 14ddf0a

Please sign in to comment.