• Bob Van Landuyt's avatar
    Mark ScheduleAggregationWorker as idempotent · 1d774e4e
    Bob Van Landuyt authored
    This marks the Namespaces::ScheduleAggregationWorker as
    idempotent. It was already idempotent, because it checks the existence
    of the Namespace::AggregationSchedule before doing anything and it
    uses `safe_find_or_create` to avoid race conditions.
    
    This adds specs proving that it is idempotent.
    
    It also adds the worker to the DROPPABLE_QUEUES so we can use it to
    try out deduplicating jobs.
    1d774e4e
schedule_aggregation_worker_spec.rb 2.29 KB