Best way to monitor for completion of a Sidekiq job?

后端 未结 2 436
迷失自我
迷失自我 2021-02-02 13:05

I\'m using a Sidekiq worker to complete some requests to Facebook after a user signs-in for the first time. Typically the task takes around 20 seconds or so.

I\'d like

2条回答
  •  情深已故
    2021-02-02 13:44

    Paul, initially you have to take a look on this PubSub on Rails tutorial!

    This will be your better solution for notify user when asynchronous things occur/complete in the backend.

    tip: If you're using heroku, you'll have a lot of libraries with abstract this complexity for you.

提交回复
热议问题