Closed hzbd closed 2 months ago
Did the previous extension(https://github.com/doubaokun/supervisor_twiddler) allow process configurations to be created or updated via an RPC interface? Was this feature deprecated due to security considerations?
I have a question regarding something I don't understand. From the source code, it seems that it is no longer possible to directly create a process instance via the RPC interface
It's never been possible in Supervisor itself. New programs must be added to the configuration file, then the configuration file reloaded. Back around 2008 or so, I wanted to directly a create process using the RPC interface, so I made the supervisor_twiddler
plugin.
, and the code related to the UnhosedConfigParser class seems to be deprecated.
I found no mention of deprecations related to that class. That said, it's not a public API and may have changed since supervisor_twiddler
was written.
I would like to know why the addProgramToGroup interface is no longer available?
The RPC method addProgramToGroup()
is not part of Supervisor, it's part of the supervisor_twiddler
plugin. If it no longer works, please ask on the supervisor_twiddler
issue tracker.
The classes in supervisor.options
were never intended to be a public API but the supervisor_twiddler
plugin reaches in there since there's no other way to do it. If the plugin no longer works, it's the plugin that should be fixed.
Did the previous extension [...] allow process configurations to be created or updated via an RPC interface? Was this feature deprecated due to security considerations?
It did when I last used it around 2014. I found no mention of supervisor_twiddler
being deprecated at this time.
The project is excellent and has been very helpful to my project's development progress. Thank you.
I have a question regarding something I don't understand. From the source code, it seems that it is no longer possible to directly
create a process
instance via the RPC interface, and the code related to theUnhosedConfigParser
class seems to be deprecated. I would like to know why the[addProgramToGroup](https://github.com/doubaokun/supervisor_twiddler/blob/master/supervisor_twiddler/rpcinterface.py#L76)
interface is no longer available?