SolidQueue has concurrency controls now: https://github.com/rails/solid_queue/?tab=readme-ov-file#concurrency-controls
class ContinuousSearchJob < ApplicationJob
limits_concurrency key: :ContinuousSearchJob
# ...
Then only one instance of this job will be able to run at once. If another attempts to start, it is discarded.