Skip to content

Spring boot workers-auto-discovery - Workflow vs Activities #2780

@gauravthadani

Description

@gauravthadani

Context:

The intention is that a user generally has control over the activity beans they are creating, 
but has less control over the classes that may be in their path, thus justifying a way to exclude them.

the config name should have been maybe workflow-packages to represent the intention

config sample:

  temporal:
    workers-auto-discovery:
      packages:
        - io.temporal.spring.boot.autoconfigure.bytaskqueue
  • While all Activities are loaded as Beans, they depend on the boolean workers-auto-discovery
  • And then the filter for packages only applied Workflows.

Essentially, if no packages are declared, then no Activities/Beans are registered either

Expected Behavior

Activity beans to be loaded when

  • workers-auto-discovery present in config despite the presence of packages

Preference to rename packages to workflow-packages

Actual Behavior

No Activities registered, if no packages specified - link

Additional notes

  • thought issue is worthwhile given single use Activity feature.

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions