Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63760

QueueItemMetricsListener.onQueued is never called

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I was working on a plugin that was using the metrics plugin to receive queue-related events, and I noticed that QueueItemMetricsListener.onQueued is never called in my plugin.

      QueueItemMetricsListener.notifyQueued does call onQueued, but as far as I can tell, notifyQueued itself is not called anywhere in the plugin (see this GitHub search).

      From a quick look, maybe JenkinsMetricProviderImpl.ScheduledRate.checkEnterQueue just has a typo and should be calling notifyQueued instead of notifyStarted? notifyStarted is already called here, which looks like it would be called when the task actually starts. I'm not sure what the consequences of changing checkEnterQueue might be, perhaps it could break existing plugins relying on notifyStarted being called more often than might be expected?

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dnusbaum Devin Nusbaum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: