mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Cloud schema and remove use_ubridge for VMware VM.
This commit is contained in:
1 parent
df654b40ff
commit
39a3f2fae2
6 files changed
+306
-74
No files matched your search
@@ -21,9 +21,9 @@ import asyncio
|
||||
|
||||
class Pool():
|
||||
"""
|
||||
Limit concurrency for running parallel task
|
||||
Limit concurrency for running parallel tasks
|
||||
"""
|
||||
def __init__(self, concurrency=2):
|
||||
def __init__(self, concurrency=5):
|
||||
self._tasks = []
|
||||
self._concurrency = concurrency
|
||||
|
||||
@@ -41,7 +41,6 @@ class Pool():
|
||||
task, args, kwargs = self._tasks.pop(0)
|
||||
pending.add(task(*args, **kwargs))
|
||||
(done, pending) = yield from asyncio.wait(pending, return_when=asyncio.FIRST_COMPLETED)
|
||||
print(done)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in new issue
Block a user