Skip to content

Unnecessary warning on Solid Queue startup #641

@easydatawarehousing

Description

@easydatawarehousing

On startup of Solid Queue all claimed_executions are set to failed status and a warning of this fact is added to the log. This is perfect! But when there are no claimed_executions a warning is still logged, like this:

WARN -- : SolidQueue-1.2.1 Fail claimed jobs (36.4ms) job_ids: [], process_ids: []

requiring attention further down the line.

I'm not familiar with solid_queue source code but wondering if solid_queue/app/models/solid_queue/process/executor.rb should test if any claimed_executions are present.

def fail_all_claimed_executions_with(error)
  if claims_executions? && claimed_executions.present?
    claimed_executions.fail_all_with(error)
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions