Skip to content

Commit cb2165b

Browse files
authored
Fix agent start failed in async mode when profiling is enabled (#360)
1 parent c36972c commit cb2165b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Fix pulsar client does not support init arguments other than service_url (#351)
1212
- Fix outdated make dev-fix rule in CodeStyle.md (#350)
1313
- Fix TestClient for fastapi cause the req.client None error (#355)
14+
- Fix agent start failed in async mode when profiling is enabled (#360)
1415

1516
### 1.1.0
1617

skywalking/command/command_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ def receive_command(self, commands: Commands):
6868
class CommandServiceAsync:
6969

7070
def __init__(self):
71-
self._commands = AsyncQueue() # type: AsyncQueue
7271
# don't execute same command twice
7372
self._command_serial_number_cache = CommandSerialNumberCache()
7473

7574
async def dispatch(self):
75+
self._commands = AsyncQueue() # type: AsyncQueue
7676
while True:
7777
# block until a command is available
7878
command = await self._commands.get() # type: BaseCommand

0 commit comments

Comments
 (0)