Interface JobRunrConfiguration.BackgroundJobServerConfiguration

Enclosing interface:
JobRunrConfiguration

@ConfigurationProperties("backgroundJobServer") public static interface JobRunrConfiguration.BackgroundJobServerConfiguration
  • Method Details

    • getName

      Optional<String> getName()
      Allows to set the name of the BackgroundJobServer (used in the dashboard).
    • isEnabled

      @Bindable(defaultValue="false") boolean isEnabled()
      Enables the background processing of jobs.
    • getWorkerCount

      Optional<Integer> getWorkerCount()
      Sets the workerCount for the BackgroundJobServer which defines the maximum number of jobs that will be run in parallel. By default, this will be determined by the amount of available processor.
    • getThreadType

      Optional<org.jobrunr.server.configuration.BackgroundJobServerThreadType> getThreadType()
      Sets the Thread Type for the BackgroundJobServer. By default, this will be determined by the Java version (VirtualThreads as of Java 21).
    • getPollIntervalInSeconds

      Optional<Integer> getPollIntervalInSeconds()
      Set the pollIntervalInSeconds for the BackgroundJobServer to see whether new jobs need to be processed
    • getServerTimeoutPollIntervalMultiplicand

      Optional<Integer> getServerTimeoutPollIntervalMultiplicand()
      Set the pollInterval multiplicand used to determine when a BackgroundJobServer has timed out and processing jobs are orphaned.
    • getScheduledJobsRequestSize

      Optional<Integer> getScheduledJobsRequestSize()
      Sets the maximum number of jobs to update from scheduled to enqueued state per database round-trip.
    • getOrphanedJobsRequestSize

      Optional<Integer> getOrphanedJobsRequestSize()
      Sets the query size for misfired jobs per database round-trip (to retry them).
    • getSucceededJobsRequestSize

      Optional<Integer> getSucceededJobsRequestSize()
      Sets the maximum number of jobs to update from succeeded to deleted state per database round-trip.
    • getDeleteSucceededJobsAfter

      Optional<Duration> getDeleteSucceededJobsAfter()
      Sets the duration to wait before changing jobs that are in the SUCCEEDED state to the DELETED state.
    • getPermanentlyDeleteDeletedJobsAfter

      Optional<Duration> getPermanentlyDeleteDeletedJobsAfter()
      Sets the duration to wait before permanently deleting jobs that are in the DELETED state.
    • getInterruptJobsAwaitDurationOnStop

      Optional<Duration> getInterruptJobsAwaitDurationOnStop()
      Sets the duration to wait before interrupting threads/jobs when the server is stopped.
    • getMetrics

      @NotNull @NotNull JobRunrConfiguration.MetricsConfiguration getMetrics()
      Allows to configure the MicroMeter Metrics integration for the BackgroundJobServer.