akira / exq_ui

UI Dashboard for Exq, a job processing library for Elixir. Exq UI provides the UI dashboard to display stats on job processing.
Other
154 stars 73 forks source link

Jobs with errors causes worker to unsubscribe from all queues #132

Closed colman-hartinger closed 1 year ago

colman-hartinger commented 1 year ago

Exq config:

  start_on_application: false,
  scheduler_enable: true,
  mode: :default

 ###############################
 application.ex
 ###############################
 children = [
   Exq
 ]

Description: A job with a failure that kills the worker process causes the worker node to unsubscribe all the queues indefinitely.

ananthakumaran commented 1 year ago

Could you share the error logs or a minimal example that reproduces the problem? I tried with the above config, but couldn't reproduce the problem.

colman-hartinger commented 1 year ago

Hmm I think it could possibly be an issue with exq_ui actually since when using that it's sending a TSTP unsubscribe signal to the node for no reason

ananthakumaran commented 1 year ago

Could you upgrade exq_ui to the latest version. There was a bug which would lead to the issue you mentioned. If you had the busy tab open and if you restart exq_ui, it will end up treating the csrf token request as unsubscribe request. This has been fixed in the latest release

On Mon, 7 Nov, 2022, 10:38 pm colman-hartinger, @.***> wrote:

Hmm I think it could possibly be an issue with exq_ui actually since when using that it's sending a TSTP unsubscribe signal to the node for no reason

— Reply to this email directly, view it on GitHub https://github.com/akira/exq_ui/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEN5QPDXRQGPECXOOOPV3WHEZQVANCNFSM6AAAAAARWLKUWU . You are receiving this because you commented.Message ID: @.***>

colman-hartinger commented 1 year ago

I upgraded to exq_ui version 0.12.3 but the same thing is still happening. Heres an error log I have

warning: <%= live_component Component %> is deprecated, please use <.live_component module={Component} id="hello"/> inside HEEx templates instead

(phoenix_live_view 0.17.11) lib/phoenix_live_view/helpers.ex:497: Phoenix.LiveView.Helpers.live_component/1

(exq_ui 0.12.3) lib/exq_ui_web/templates/layout/live.html.heex:1: anonymous fn/2 in ExqUIWeb.LayoutView."live.html"/1

Received TSTP, unsubscribing from all queues module=Exq.Node.Server pid=<0.2943.0>

I can close this issue and reopen it in the exq_ui repo since this doesn't seem to be a bug with exq

ananthakumaran commented 1 year ago

Can you point to the master branch of exq_ui. I assumed it was released, but it is still not released.

On Wed, 9 Nov, 2022, 7:44 am colman-hartinger, @.***> wrote:

I upgraded to exq_ui version 0.12.3 but the same thing is still happening. Heres an error log I have

warning: <%= live_component Component %> is deprecated, please use <.live_component module={Component} id="hello"/> inside HEEx templates instead

(phoenix_live_view 0.17.11) lib/phoenix_live_view/helpers.ex:497: Phoenix.LiveView.Helpers.live_component/1

(exq_ui 0.12.3) lib/exq_ui_web/templates/layout/live.html.heex:1: anonymous fn/2 in ExqUIWeb.LayoutView."live.html"/1

Received TSTP, unsubscribing from all queues module=Exq.Node.Server pid=<0.2943.0>

I can close this issue and reopen it in the exq_ui repo since this doesn't seem to be a bug with exq

— Reply to this email directly, view it on GitHub https://github.com/akira/exq_ui/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEN5RHLMDIPJTE4LTFBDDWHMCHLANCNFSM6AAAAAARWLKUWU . You are receiving this because you commented.Message ID: @.***>

ananthakumaran commented 1 year ago

fixed on v0.13.0