Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix flag in system task worker coordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
apanicker-nflx committed Mar 16, 2021
1 parent 1285af7 commit b0a65f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Component
@ConditionalOnProperty(name="conductor.system-task-workers.enabled", havingValue = "true", matchIfMissing = true)
@ConditionalOnProperty(name = "conductor.system-task-workers.enabled", havingValue = "true", matchIfMissing = true)
public class SystemTaskWorkerCoordinator extends LifecycleAwareComponent {

private static final Logger LOGGER = LoggerFactory.getLogger(SystemTaskWorkerCoordinator.class);
Expand Down Expand Up @@ -117,7 +117,7 @@ private void listen(String queueName) {
}

private void pollAndExecute(String queueName) {
if (isRunning()) {
if (!isRunning()) {
LOGGER.debug("Component stopped. Not polling for system task in queue : {}", queueName);
return;
}
Expand Down

0 comments on commit b0a65f2

Please sign in to comment.