cmdstalk icon indicating copy to clipboard operation
cmdstalk copied to clipboard

Wildcard tube matching (incl new tubes)

Open lwc opened this issue 10 years ago • 3 comments

One drawback to our current docker setup is that services like mysql and beanstalk are not isolated between 99designs services (contests / swiftly etc).

This issue doesn't manifest for mysql, as (most) applications are isolated from each other at a database level. Unfortunately it does manifest for beanstalk, as cmdstalk, when run with -all will happily listen to queues from all applications.

While this problem is better addressed at a docker level, one feature that would alleviate this in the short term is wildcard tube matching.

Something like the following could listen to all present and future tubes starting with "contests_": cmdstalk -cmd="/path/to/your/worker --your=flags --here" -tubes="contests_*"

Happy to pair with someone on it, for the go experience.

lwc avatar Jul 31 '14 04:07 lwc

Yep — @harto and I were just discussing an idea like this yesterday.

I think I'd prefer matching on prefix rather than wildcard. It suits the use-case you've described without posing unnecessary questions like what does -tubes="contests**-hello-*" mean, and avoids cmdstalk competing with the shell to expand * chars.

pda avatar Jul 31 '14 19:07 pda

Seems fair enough, prefix matching would solve my problem :+1:

lwc avatar Aug 01 '14 00:08 lwc

:+1: to prefixing

joho avatar Aug 01 '14 01:08 joho