Skip to content

Can't find running job #441

@devnacho

Description

@devnacho

Hello :)

I'm not being able to find a running job with Exq.Api.find_job.

Is this expected?

Reproduction steps

  1. I have the following config:
config :exq,
  name: Exq,
  queues: ["default"]
  1. I have the following worker
defmodule TestWorker do
  def perform do
    job =
      Exq.worker_job()
      |> IO.inspect()

    :timer.sleep(50000)
    raise "error"
  end
end
  1. I enqueue the job {:ok, job_id} = Exq.enqueue(Exq, "default", TestWorker, [])

  2. While the job is running I run Exq.Api.find_job(Exq.Api, "default", job_id) and it returns {:ok, nil}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions