Skip to content

fix(scheduler): resolve ambiguous RetryTemplate bean in MySQLSchedulerConfiguration#1248

Open
talhadevelopes wants to merge 1 commit into
conductor-oss:mainfrom
talhadevelopes:fix/mysql-scheduler-ambiguous-retry-template
Open

fix(scheduler): resolve ambiguous RetryTemplate bean in MySQLSchedulerConfiguration#1248
talhadevelopes wants to merge 1 commit into
conductor-oss:mainfrom
talhadevelopes:fix/mysql-scheduler-ambiguous-retry-template

Conversation

@talhadevelopes

@talhadevelopes talhadevelopes commented Jul 3, 2026

Copy link
Copy Markdown

Problem

When using conductor.db.type=mysql with conductor.scheduler.enabled=true,
the application fails to start with:
Parameter 0 of method schedulerArchivalDAO in MySQLSchedulerConfiguration
required a single bean, but 2 were found:

  • mysqlRetryTemplate
  • onTransientErrorRetryTemplate

MySQLSchedulerConfiguration injected RetryTemplate by type without a
@Qualifier, causing Spring to fail when both mysqlRetryTemplate
(from MySQLConfiguration) and onTransientErrorRetryTemplate
(from ConductorCoreConfiguration) are present in the context.

Fix

Screenshot 2026-07-03 083434

Added @Qualifier("mysqlRetryTemplate") to both schedulerDAO() and
schedulerArchivalDAO() method parameters in MySQLSchedulerConfiguration.

This matches the pattern already used by every other MySQL bean in
MySQLConfiguration.java (mySqlMetadataDAO, mySqlExecutionDAO,
mySqlQueueDAO, etc.).

Changes

  • scheduler/mysql-persistence/.../MySQLSchedulerConfiguration.java
    added @Qualifier("mysqlRetryTemplate") to RetryTemplate parameter
    in both schedulerDAO() and schedulerArchivalDAO()

Fixes #1221

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.

MySQLSchedulerConfiguration fails with ambiguous RetryTemplate bean when conductor.db.type=mysql and conductor.scheduler.enabled=true

1 participant