Code Monkey home page Code Monkey logo

Comments (11)

abitrolly avatar abitrolly commented on August 16, 2024

И как его дебажить?

from hackerspace.by.

jekhor avatar jekhor commented on August 16, 2024

from hackerspace.by.

yahor avatar yahor commented on August 16, 2024

@abitrolly у сайдкіка свой дашбоард і логі.
Для памылак можна таксама сэрвіс https://github.com/smartinez87/exception_notification прычапіць.

ExceptionNotification relies on notifiers to deliver notifications when errors occur in your applications. By default, 8 notifiers are available:
Datadog notifier
Email notifier
HipChat notifier
IRC notifier
Slack notifier
Mattermost notifier
Teams notifier
Amazon SNS
Google Chat notifier
WebHook notifier

@jekhor дык сэнс ў тым, што няма ў нас фонавых задач:

  # Use a real queuing backend for Active Job (and separate queues per environment).
  # config.active_job.queue_adapter     = :resque
  # config.active_job.queue_name_prefix = "hspace_production"

Усе мэйлы адпраўляюцца імгенна.
У нас толькі крон задачы ёсць для перыядычнага запуска.

З sidekiq усе джобы будуць перадавацца ў sidekiq як queue adapter-у:

class Application < Rails::Application
  # ...
  config.active_job.queue_adapter = :sidekiq
end

from hackerspace.by.

abitrolly avatar abitrolly commented on August 16, 2024

@abitrolly у сайдкіка свой дашбоард і логі.

А бесплатного плана https://sidekiq.org/ хватает, чтобы дебажить эту асинхронщину? Я как-то на древнем проде пытался это дебажить, в итоге всё равно вручную на листике пришлось восстанавливать состояние переходов.

from hackerspace.by.

jekhor avatar jekhor commented on August 16, 2024

@yahor не імгненна:
"Resque adapter for Active Job

Resque (pronounced like “rescue”) is a Redis-backed library for creating background jobs, placing those jobs on multiple queues, and processing them later."

from hackerspace.by.

yahor avatar yahor commented on August 16, 2024

@jekhor Дык не выстаўлены ў нас адапцер цяперака. Значыцца будзе інлайн у тым жа патоку.

Rails by default comes with an asynchronous queuing implementation that runs jobs with an in-process thread pool. Jobs will run asynchronously, but any jobs in the queue will be dropped upon restart.
https://guides.rubyonrails.org/active_job_basics.html

from hackerspace.by.

jekhor avatar jekhor commented on August 16, 2024

Ну, дык асінхронна ж. Так, калі мыла яшчэ не адправілася, а хтосьці перазапусціць рэльсы — то згубіцца, гэта праўда.

from hackerspace.by.

jekhor avatar jekhor commented on August 16, 2024

Карацей, зрабіць добра было б, так, але і зараз не блакуецца. Вось тэлеграмам блакуецца, але ён дастаткова хутка для нас адпрацоўвае.

from hackerspace.by.

abitrolly avatar abitrolly commented on August 16, 2024

По-ходу защита от потерь задач в бэсплатной версии не работает https://sidekiq.org/

from hackerspace.by.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.