Uploaded image for project: 'Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)'
  1. Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)
  2. QTZ-323

Unable to customize SimpleThreadPool's worker thread name prefixes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 2 Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.2
    • Component/s: ThreadPools
    • Labels:
      None
    • Terracotta Target:
      Unknown
    • Fixed In Revision:
      2300

      Description

      I am trying to understand if there is a way to customize Quartz worker thread names.

      Setting "org.quartz.threadPool.threadNamePrefix: my-thread-name-prefix" in quartz properties has no effect because StdSchedulerFactory replaces it with schedName + "_Worker" (lines 1250-1254). Also,

      1. it does that for all SimpleThreadPool descendants
      2. it calls "initialize" immediately after it, which leads to actual threads creation.

      So I do not see how I could easily configure thread names prefix in Quartz. Please let me know if I am missing something and if there is a way to achieve what I want.

        Attachments

          Activity

            People

            • Assignee:
              hhuynh Hung Huynh
              Reporter:
              arubtsov Andrii Rubtsov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: