Instantly share code, notes, and snippets.

Embed
What would you like to do?
% mco rpc choria_cron pause -T cron
Discovering hosts using the mc method for 2 second(s) .... 1
* [ ============================================================> ] 1 / 1
dev1.devco.net
Paused: true
Summary of Paused:
true = 1
Finished processing 1 / 1 hosts in 7.21 ms
% mco rpc choria_cron info -T cron
Discovering hosts using the mc method for 2 second(s) .... 1
* [ ============================================================> ] 1 / 1
dev1.devco.net
Facts: {"debug"=>true,
"logfile"=>"/tmp/choria.log",
"name"=>"DC1_1",
"source_url"=>"localhost",
"cache"=>"/tmp/cache.json",
"update_interval"=>600,
"workers"=>5,
"reply_target"=>"choria_cron.replies",
"choria_client_config"=>"/etc/puppetlabs/mcollective/client.cfg",
"monitor_port"=>8080,
"notification"=>
{"urls"=>["nats://localhost:5001"],
"cluster_id"=>"test-cluster",
"target"=>"cron.runs"},
"management"=>
{"brokers"=>["nats://localhost:5001"],
"collective"=>"cron",
"logfile"=>"/tmp/choria.log",
"loglevel"=>"debug",
"tls"=>nil,
"auth"=>{"insecure"=>true, "full"=>nil, "read_only"=>nil}}}
Paused: true
Version: 0.0.1
Summary of Paused:
true = 1
Summary of Version:
0.0.1 = 1
Finished processing 1 / 1 hosts in 4.55 ms
{"action":"ping","agent":"rpcutil","id":"test_id","level":"info","msg":"Requesting run of job: rpcutil#ping","owner":"bob","time":"2018-07-06T13:51:00+02:00"}
{"level":"info","msg":"Skipping job rpcutil#ping while paused","time":"2018-07-06T13:51:00+02:00","worker":"3"}
% mco rpc choria_cron resume -T cron
Discovering hosts using the mc method for 2 second(s) .... 1
* [ ============================================================> ] 1 / 1
dev1.devco.net
Paused: false
Summary of Paused:
false = 1
Finished processing 1 / 1 hosts in 4.11 ms
{"action":"ping","agent":"rpcutil","id":"test_id","level":"info","msg":"Requesting run of job: rpcutil#ping","owner":"bob","time":"2018-07-06T13:52:00+02:00"}
{"level":"info","msg":"Running job rpcutil#ping","time":"2018-07-06T13:52:00+02:00","worker":"0"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment