PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: quantum-elixir/quantum-core (elixir)

Issue:
An exception after 2nd run of mix test in row
Hello, after upgrading to version **3.5.1** we started to have this issue after running 2 times in the row `mix test`. `mix clean` in between fixes the issue but it's kind of inconvenient
```
    ** (EXIT) an exception was raised:

        ** (Protocol.UndefinedError) protocol String.Chars not implemented for #Reference<0.2321102968.2692218881.74074> of type Reference. This protocol is implemented for the following type(s): Atom, BitString, Date, DateTime, Decimal, Float, Floki.Selector, Floki.Selector.AttributeSelector, Floki.Selector.Combinator, Floki.Selector.Functional, Floki.Selector.PseudoClass, Integer, List, MyXQL.Queries, MyXQL.Query, MyXQL.TextQueries, MyXQL.TextQuery, NaiveDateTime, Phoenix.LiveComponent.CID, Postgrex.Copy, Postgrex.Query, Time, URI, Version, Version.Requirement

            (elixir 1.16.1) lib/string/chars.ex:3: String.Chars.impl_for!/1

            (elixir 1.16.1) lib/string/chars.ex:22: String.Chars.to_string/1

            (quantum 3.5.1) lib/quantum.ex:330: anonymous fn/3 in Quantum.remove_invalid_jobs/2

            (elixir 1.16.1) lib/enum.ex:2528: Enum."-reduce/3-lists^foldl/2-0-"/3

            (quantum 3.5.1) lib/quantum.ex:319: Quantum.remove_invalid_jobs/2

            (elixir 1.16.1) lib/keyword.ex:1149: Keyword.update_guarded/4

            (elixir 1.16.1) lib/keyword.ex:1153: Keyword.update_guarded/4

            (quantum 3.5.1) lib/quantum.ex:306: Quantum.scheduler_config/3
```
From the backtrace looks related to
https://github.com/quantum-elixir/quantum-core/pull/523

erlang 26.2
elixir 1.16.1


Pull request:
Fix Logs for invalid jobs
Fixes #600 

Patch:
diff --git a/lib/quantum.ex b/lib/quantum.ex
index ab367d8..12e9df8 100644
--- a/lib/quantum.ex
+++ b/lib/quantum.ex
@@ -320,14 +320,14 @@ defmodule Quantum do
       cond do
         duplicate_job?(Map.keys(acc), job) ->
           Logger.warning(
-            "Job with name '#{name}' of scheduler '#{scheduler}' not started: duplicate job name"
+            "Job with name #{inspect(name)} of scheduler #{inspect(scheduler)} not started: duplicate job name"
           )
 
           acc
 
         invalid_job_task?(job) ->
           Logger.warning(
-            "Job with name '#{name}' of scheduler '#{scheduler}' not started: invalid task function"
+            "Job with name #{inspect(name)} of scheduler #{inspect(scheduler)} not started: invalid task function"
           )
 
           acc


Test patch:
diff --git a/test/quantum_startup_test.exs b/test/quantum_startup_test.exs
index 9cc4abc..7579ad5 100644
--- a/test/quantum_startup_test.exs
+++ b/test/quantum_startup_test.exs
@@ -56,6 +56,6 @@ defmodule QuantumStartupTest do
       end)
 
     assert log =~
-             "Job with name 'inexistent_function' of scheduler 'Elixir.QuantumStartupTest.Scheduler' not started: invalid task function"
+             "Job with name :inexistent_function of scheduler QuantumStartupTest.Scheduler not started: invalid task function"
   end
 end