question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Part of the configuration file does not work

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
salaboycommented, Oct 22, 2019

@spulci let’s try to get this in as well.

2reactions
spulcicommented, Oct 22, 2019

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found