Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-651

Support for disabling scope activation globally

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • Scheduler
    • None

    Description

      The Scheduler always attempts to start scopes listed. For basic use cases, if my job is ApplicationScoped that can be assumed to be started for the scheduler to operate. We should support a configuration parameter, more of a performance optimization, to not require the scopes to be activated.

      You can add deltaspike.scheduler.start_scopes_for_jobs to your ConfigSource with the value of false, and scopes won't be attempted to be started.

      As a result, the Scheduler now has an optional dependency on CDI SE/CDI Context Control module as well, which will help with adoption.

      Attachments

        Activity

          People

            johndament John D. Ament
            johndament John D. Ament
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: