Skip to content

mark_indices_as_ready task should use the event pattern to process

Background

We have a new design pattern in the scheduling_servic to publish events for each task. However, mark_indices_as_ready still does not use the event approach.

Proposal

Publish the event in the task mark_indices_as_ready and move the logic to the event worker. The event can be published without any arguments. Use the scope directly in the event worker with the limit and order(:id).

Edited by Ravi Kumar