Fork me on GitHub
#proletarian
<
2023-01-21
>
emccue14:01:44

so on a scale of 1-100, how bad of an idea is it to just make my "execute job" do a requiring-resolve?

emccue14:01:15

(defn handle-job!
  [system job-type payload]
  (@(requiring-resolve (symbol job-type))
    system payload))

emccue17:01:29

also just a heads up on a reflection warning > Reflection warning, proletarian/worker.clj:235:16 - call to static method sleep on java.lang.Thread can't be resolved (argument types: java.lang.Number).