`jhack utils ffwd`

Often I found myself in need to run juju model-config update-status-hook-interval=5s to speed up the update-status hook firing rate, and once I got my event (to de-defer some other event, or get my debug-hooks session running, or …), set the firing rate back to 60m or something like that.

That’s way too much typing for a software engineer, so here’s jhack utils ffwd.

image

This launches a context which remains alive until you kill it with Ctrl+C. Within it, you get a default of a update-status each 5s. When exiting the context, the rate is set by default back to 5m.

Alternatively you can specify a timeout after which the context exits on its own. image

2 Likes