MetPX / sarracenia

https://MetPX.github.io/sarracenia
GNU General Public License v2.0
45 stars 22 forks source link

Feature request: more obvious warning when attempting to action a disabled config #1266

Open reidsunderland opened 1 week ago

reidsunderland commented 1 week ago

I vaguely recall discussing this, but I couldn't find an issue for it.

It would be nice to have a more obvious warning when trying to start/stop/cleanup/etc a disabled config.

$ sr3 status | grep disa
sarra/get_ssc_wmo_bulletins                          disa    3/3     0   0%   0%     0    0.00s    0.00s        0  0.0%       0B/s       0m/s       0B/s       0B/s

$ sr3 start sarra/get_ssc_wmo_bulletins
starting:( 0 ) Done

$ sr3 cleanup sarra/get_ssc_wmo_bulletins
cleanup: 2024-10-18 20:26:46,031 1664 [INFO] sarracenia.moth.amqp getCleanUp deleting queue q_feeder.sarra.get_ssc_wmo_bulletins
2024-10-18 20:26:46,037 1664 [INFO] sarracenia.flowcb.log on_cleanup hello
removing state file: /local/home/sarra/.cache/sr3/sarra/get_ssc_wmo_bulletins/sarra.get_ssc_wmo_bulletins.feeder.qname
removing state file: /local/home/sarra/.cache/sr3/sarra/get_ssc_wmo_bulletins/subscriptions.json

@robjarawan

petersilva commented 1 week ago

perhaps previous discussiuon was around #1159 ...

reidsunderland commented 1 week ago

Yes, that's what I remembered!

petersilva commented 1 week ago

@mshak2 maybe this is a good one for you... I think the implementation is:

options:

dunno... would have to play...