Project

General

Profile

Actions

Feature #17450

closed

Call python modules' handle_command in the background

Added by John Spray over 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
ceph-mgr
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Currently DaemonServer::handle_command calls into the python code inline. This potentially blocks the messenger thread we're coming from (and perhaps could even deadlock if the python command handler tried to call something that needed DaemonServer::lock). Call it in the background (probably just push it onto a Finisher?)

Actions

Also available in: Atom PDF