You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I have a problem where I cant filter a job. I tried the example of queue + cancel and tried passing an fn that returns true to get all jobs from .filter but I always get an ArgumentError.
#enqueue a job{:receive_work,[stages]}|>Honeydew.async({:global,:my_queue})# StatusHoneydew.status({:global,:my_queue})|>Map.get(:queue)|>IO.inspect# find the job and cancel it# :ok =Honeydew.filter({:global,:my_queue},%{task: {:receive_work,[stages]}})|>List.first|>Honeydew.cancel
The error:
** (MatchError) no match of right hand side value: {:error, %ArgumentError{message: "argument error"}}
(honeydew) lib/honeydew.ex:191: Honeydew.filter/2
(queue) lib/server/router.ex:133: anonymous fn/2 in App.Router.do_match/4
(queue) lib/server/router.ex:2: App.Router.plug_builder_call/2
(queue) lib/plug/error_handler.ex:64: App.Router."call (overridable 3)"/2
(queue) lib/plug/debugger.ex:122: App.Router.call/2
(plug_cowboy) lib/plug/cowboy/handler.ex:18: Plug.Adapters.Cowboy.Handler.upgrade/4
(cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hey,
Thanks for replying so fast, I feel so stupid. You can close this issue. I had a worker, a queue and a client on different machines and I did not update the queue after a change to a shared module between those 3 processes. That is what gave the error, everything works now.
Thanks a lot!
Hey,
I have a problem where I cant filter a job. I tried the example of queue + cancel and tried passing an fn that returns true to get all jobs from .filter but I always get an ArgumentError.
The error:
Thanks in advance!
The text was updated successfully, but these errors were encountered: