blob: 20c274355d1c13a96ed5817ce62eef035fceb1c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env python3
import xmlrpc.client
import sys
if len(sys.argv) < 4:
print("ERROR: Usage: %s URI workername dispatcherIP" % sys.argv[0])
sys.exit(1)
server = xmlrpc.client.ServerProxy("%s" % sys.argv[1])
server.scheduler.workers.set_config("%s" % sys.argv[2], "dispatcher_ip: %s" % sys.argv[3])
|