# Problem with Oban Workers

**URL:** <https://forum.elixirforum.com/t/problem-with-oban-workers/43634>\
**Category:** Questions\
**Tags:** phoenix, oban\
**Created:** [November 5, 2021, 1:18am UTC](https://forum.elixirforum.com/t/problem-with-oban-workers/43634 "2021-11-05T01:18:33Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![osmirbresciani](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/osmirbresciani/32/24752_2.png) [@osmirbresciani](https://forum.elixirforum.com/u/osmirbresciani)\
**Post date:** [November 10, 2021, 10:00pm UTC](https://forum.elixirforum.com/t/problem-with-oban-workers/43634/11 "2021-11-10T22:00:56Z")

</div>

updating:

Running oban tests using iex in dev:

```
  iex> Oban.Worker.from_string("Oban.Integration.Worker")
  {:ok, Oban.Integration.Worker}

  iex> defmodule NotAWorker, do: []
  ...> Oban.Worker.from_string("NotAWorker")
  {:error, %RuntimeError{message: "module is not a worker: NotAWorker"}}

  iex> Oban.Worker.from_string("RandomWorker")
  {:error, %RuntimeError{message: "unknown worker: RandomWorker"}}

```

Everything worked as it should. The module is recognized. I also run the app in production with oban workers and it worked!! The error only continues running locally in dev environment: `iex -S mix phx.server` and `mix phx.server` where the code doesn’t update and I get the error: `unknown worker` from oban.

I believe it’s a problem in the compilation of my code because when I start the app, I sometimes get the error: ` ** (File.Error) could not write to file "/home/desktop/projects/api/_build/dev/lib/api/ebin/my-worker-file.beam": permission denied`, but running with `release` in prod works. Thanks for the help, I’ll search for the cause of this compilation issue.

---

_[View the full topic](https://forum.elixirforum.com/t/problem-with-oban-workers/43634)._
