Supervisor: unexpected keyword argument 'wait'

Created on 1 Nov 2017  路  2Comments  路  Source: Supervisor/supervisor

I'm preforming some tests to interact with supervisor through Python

from supervisor import childutils

env = {
 'SUPERVISOR_SERVER_URL':"unix:///var/run/supervisor.sock",
 'SUPERVISOR_USERNAME':"",
 'SUPERVISOR_PASSWORD':""
}
x = childutils.getRPCInterface(env)
x.supervisor.startProcess('myprocess', wait=True)  

This raises

TypeError: __call__() got an unexpected keyword argument 'wait'

Is there anything I'm doing wrong? According to the docs, the versions do support the 'wait' argument.

Versions
Python 2.7.6
Supervisor (lib) 3.3.3
Supervisor 3.0b2-1

question xmlrpc

Most helpful comment

x = childutils.getRPCInterface(env)
x.supervisor.startProcess('myprocess', wait=True)  

This raises

TypeError: __call__() got an unexpected keyword argument 'wait'

getRPCInterface returns a ServerProxy for communicating with supervisord via XML-RPC. The XML-RPC protocol does not support keyword arguments. Call it using positional arguments:

x.supervisor.startProcess('myprocess')               # True is the default

x.supervisor.startProcess('myprocess', True)  

All 2 comments

x = childutils.getRPCInterface(env)
x.supervisor.startProcess('myprocess', wait=True)  

This raises

TypeError: __call__() got an unexpected keyword argument 'wait'

getRPCInterface returns a ServerProxy for communicating with supervisord via XML-RPC. The XML-RPC protocol does not support keyword arguments. Call it using positional arguments:

x.supervisor.startProcess('myprocess')               # True is the default

x.supervisor.startProcess('myprocess', True)  

Gee, thanks @mnaberez for the prompt response

Was this page helpful?
0 / 5 - 0 ratings

Related issues

detailyang picture detailyang  路  4Comments

ymsaout picture ymsaout  路  4Comments

felipejfc picture felipejfc  路  5Comments

abevoelker picture abevoelker  路  3Comments

mnaberez picture mnaberez  路  4Comments