Part of the configuration file does not work
See original GitHub issueI configured “zeebe.client.worker.threads=3” in application.properties, but I found that it didn’t work, numJobWorkerExecutionThreads still 1
public class ZeebeClientBuilderImpl implements ZeebeClientBuilder, ZeebeClientConfiguration {
private String brokerContactPoint = "0.0.0.0:26500";
private int jobWorkerMaxJobsActive = 32;
private int numJobWorkerExecutionThreads = 1;
private String defaultJobWorkerName = "default";
private Duration defaultJobTimeout = Duration.ofMinutes(5);
private Duration defaultJobPollInterval = Duration.ofMillis(100);
private Duration defaultMessageTimeToLive = Duration.ofHours(1);
private Duration defaultRequestTimeout = Duration.ofSeconds(20);
It seems the problem is that the ZeebeClientStarterAutoConfiguration.class is missing the following code
builder.numJobWorkerExecutionThreads(configurationProperties.getNumJobWorkerExecutionThreads)
This is the ZeebeClientStarterAutoConfiguration.class current code
@EnableConfigurationProperties(ZeebeClientConfigurationProperties.class)
@Configuration
@RequiredArgsConstructor
public class ZeebeClientStarterAutoConfiguration {
private final ZeebeClientConfigurationProperties configurationProperties;
@Bean
@Primary
public ZeebeClientBuilder builder() {
final ZeebeClientBuilderImpl builder = new ZeebeClientBuilderImpl();
builder.brokerContactPoint(configurationProperties.getBrokerContactPoint());
builder.defaultJobPollInterval(configurationProperties.getDefaultJobPollInterval());
builder.defaultJobTimeout(configurationProperties.getDefaultJobTimeout());
builder.defaultJobWorkerMaxJobsActive(configurationProperties.getDefaultJobWorkerMaxJobsActive());
builder.defaultJobWorkerName(configurationProperties.getDefaultJobWorkerName());
builder.defaultMessageTimeToLive(configurationProperties.getDefaultMessageTimeToLive());
return builder;
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Why do I see the "Configuration file does not exist" error after ...
This article provides the procedure to overcome the "Configuration files doesn't exist" error.
Read more >What is wrong with my configuration file for my office deployment
The /download part works, but the /configure part throws either a default "Couldn't Install. Is your internet working" bla bla bla error, ...
Read more >The configuration file 'appsettings.json' was not found and is ...
This works fine locally. But once we publish to Azure, this fails. I'm at a loss. I've created new .Net core project that...
Read more >What is configuration file? | Definition from TechTarget
A configuration file, often shortened to config file, defines the parameters, options, settings and preferences applied to operating systems (OSes), ...
Read more >Synergy - Creating and using text config files - Symless
However, if you want to run Synergy from the command line, you'll need to ... The configuration file is case-sensitive so Section, SECTION,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@spulci let’s try to get this in as well.
It seems you’re right. Do you think to have a PR for this? Otherwise I can try to have one for this in the next few days 😃