Skip to content

Fix Search::Zoekt::SchedulingService task logic

Dmitry Gruzd requested to merge fix-scheduling-service into master

What does this MR do and why?

This MR fixes https://new-sentry.gitlab.net/organizations/gitlab/issues/628193/?project=3&query=is:unresolved+SchedulingWorker&statsPeriod=14d&stream_index=0

ArgumentError Sidekiq/Search::Zoekt::SchedulingWorker
Unknown task: node_assignment

This happened because sidekiq converts symbol arguments to strings

How to reproduce

[1] pry(main)> Search::Zoekt::SchedulingWorker.new.perform('node_assignment')
ArgumentError: Unknown task: node_assignment
from /Users/dgruzd/projects/gdk-ee/gitlab/ee/app/services/search/zoekt/scheduling_service.rb:22:in `execute'

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Dmitry Gruzd

Merge request reports