Skip to content

AER-4020 Added feature to override queue configuration settings with environment variables#119

Merged
Hilbrand merged 2 commits intoaerius:mainfrom
Hilbrand:override-config
May 7, 2026
Merged

AER-4020 Added feature to override queue configuration settings with environment variables#119
Hilbrand merged 2 commits intoaerius:mainfrom
Hilbrand:override-config

Conversation

@Hilbrand
Copy link
Copy Markdown
Member

This change will make it possible to override any value in the queue configuration settings.

There are some additional breaking changes:

  • In the queue configuration files the client queue configuration has been changed from an list of client queues to a map of client queues with the client queue name as key. This makes it easier to override values for specific client queues as the name of the queue can be used. With the list the index would have to be used, but that is somewhat arbitrary and difficult to validate. For now the old way is still supported.
  • Overriding complete queue file configuration for a single worker queue with an environment variable has been removed in favor of overriding single values.
  • Also removed some of the test configuration files as those are not actually used, but where template files for actually configuration used as such in the past.

…nt variables

This change will make it possible to override any value in the queue configuration settings.

There are some additional breaking changes:
- In the queue configuration files the client queue configuration has been changed from an list of client queues to a map of client queues with the client queue name as key.
  This makes it easier to override values for specific client queues as the name of the queue can be used. With the list the index would have to be used, but that is somewhat arbitrary and difficult to validate.
  For now the old way is still supported.
- Overriding complete queue file configuration for a single worker queue with an environment variable has been removed in favor of overriding single values.
- Also removed some of the test configuration files as those are not actually used, but where template files for actually configuration used as such in the past.
Comment thread source/taskmanager/src/main/java/nl/aerius/taskmanager/domain/TaskSchedule.java Outdated
…g client queue configuration

That way the map variant is not part of the actual configuration file used in the Task Manager because the list variant is preferred to be used throughout the code, but the map variant is preferred for configuration as it allows easier overriding values with environment variables.
@Hilbrand Hilbrand requested a review from BertScholten April 17, 2026 11:06
Copy link
Copy Markdown
Member

@BertScholten BertScholten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hilbrand Hilbrand merged commit cb30679 into aerius:main May 7, 2026
1 check passed
@Hilbrand Hilbrand deleted the override-config branch May 7, 2026 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants