Skip to content

Commit

Permalink
more variable name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abrookins committed Jul 26, 2024
1 parent 7cbd5ca commit 7528cbe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/prefect/concurrency/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ async def _handle(
int, str, Optional[float], concurrent.futures.Future, Optional[bool]
],
) -> None:
occupy, mode, timeout_seconds, future, active = item
occupy, mode, timeout_seconds, future, create_if_missing = item
try:
response = await self.acquire_slots(occupy, mode, timeout_seconds, active)
response = await self.acquire_slots(
occupy, mode, timeout_seconds, create_if_missing
)
except Exception as exc:
# If the request to the increment endpoint fails in a non-standard
# way, we need to set the future's result so that the caller can
Expand Down

0 comments on commit 7528cbe

Please sign in to comment.