Use Consumer Groups to Load Subsets of Consumers
mainYou can define groups of consumers in your configuration file to allow running only specific subsets of your workers.
- Define the group in your YAML config:
consumer_groups:
payments:
- DepositConsumer
- CashoutConsumer- Run only that group using the
--only-groupflag:
hutch --only-group=payments --config=/path/to/hutch.yamlconsumer_groups:
payments:
- DepositConsumer
- CashoutConsumer
notification:
- EmailNotificationConsumer