Skip to content

Move jobs out of quick queue to prevent blocking (#19303)#19331

Open
geetxnshgoyal wants to merge 1 commit intoopenSUSE:masterfrom
geetxnshgoyal:move-sync-upstream-job
Open

Move jobs out of quick queue to prevent blocking (#19303)#19331
geetxnshgoyal wants to merge 1 commit intoopenSUSE:masterfrom
geetxnshgoyal:move-sync-upstream-job

Conversation

@geetxnshgoyal
Copy link
Copy Markdown
Contributor

Description

Addresses #19303.

The SyncUpstreamPackageVersionJob and other large jobs for big projects (like openSUSE:Factory) can take hours to execute. This ends up blocking the quick queue, preventing smaller, user-facing jobs from running in a timely manner.

Based on discussions in the issue, this PR breaks up the quick queue by user impact into three distinct queues. This avoids blocking critical UI-responsive jobs.

1. quick_user (High user impact)

  • UpdatePackagesIfDirtyJob
  • BsRequestActionWebuiInfosJob

2. slow_user (Low user impact)

  • SyncLocalPackageVersionJob
  • CreateLocalPackageVersionJob
  • SyncUpstreamPackageVersionJob
  • PopulateToSphinxJob
  • DeleteFromSphinxJob
  • ProjectDoProjectCopyJob
  • ProjectDoProjectReleaseJob
  • StatusHistoryRescalerJob

3. internal (No user impact / internal background)

  • ConfigurationWriteToBackendJob
  • IssueTrackerWriteToBackendJob
  • WorkerMeasurementsJob
  • MeasurementsJob
  • DailyUserActivityMeasurementJob

Infrastructure Updates

  • Updated all affected ApplicationJob classes to declare their new queue_as queue.
  • Created respective systemd service templates (obs-delayedjob-queue-{quick_user,slow_user,internal}@.service).
  • Registered these new systemd services in dist/obs-server.spec, dist/Makefile, and dist/systemd/obs-api-support.target.

Addresses openSUSE#19303 by splitting the quick queue into quick_user, slow_user, and internal, based on user impact to prevent long-running downstream sync jobs from blocking the quick queue.
@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Things related to the OBS RoR app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant