Skip to content

Commit

Permalink
add type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
timburke-hackit committed Nov 21, 2023
1 parent f9f57e9 commit 333c549
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 333c549

Please sign in to comment.