Skip to content

Commit

Permalink
Fix agent start failed in async mode when profiling is enabled (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsonglew authored Nov 7, 2024
1 parent c36972c commit cb2165b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Fix pulsar client does not support init arguments other than service_url (#351)
- Fix outdated make dev-fix rule in CodeStyle.md (#350)
- Fix TestClient for fastapi cause the req.client None error (#355)
- Fix agent start failed in async mode when profiling is enabled (#360)

### 1.1.0

Expand Down
2 changes: 1 addition & 1 deletion skywalking/command/command_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def receive_command(self, commands: Commands):
class CommandServiceAsync:

def __init__(self):
self._commands = AsyncQueue() # type: AsyncQueue
# don't execute same command twice
self._command_serial_number_cache = CommandSerialNumberCache()

async def dispatch(self):
self._commands = AsyncQueue() # type: AsyncQueue
while True:
# block until a command is available
command = await self._commands.get() # type: BaseCommand
Expand Down

0 comments on commit cb2165b

Please sign in to comment.