Skip to content

Commit

Permalink
Merge pull request #114 from knopki/fix-python311
Browse files Browse the repository at this point in the history
fix(scheduler): python3.11 incompatibility
  • Loading branch information
blokhin committed Jul 5, 2023
2 parents c3d738e + d2c02da commit dc01763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yascheduler/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.10"
__version__ = "1.0.11"
3 changes: 2 additions & 1 deletion yascheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,8 @@ async def wait_some_machines():
await asyncio.sleep(1)

await asyncio.wait(
[wait_some_machines(), asyncio.sleep(30)], return_when="FIRST_COMPLETED"
[asyncio.create_task(x) for x in [wait_some_machines(), asyncio.sleep(30)]],
return_when="FIRST_COMPLETED",
)

allocate_co = self.create_producer_consumers(
Expand Down

0 comments on commit dc01763

Please sign in to comment.