Git Product home page Git Product logo

Comments (4)

craiglittle avatar craiglittle commented on June 13, 2024

Hey, @oslyak!

When configuring the top-level schedule, biz creates one schedule per thread.

Are you using a threaded server such as puma? If so, you will need to configure biz on a per-thread basis. If you want to continue with centralizing the configuration, check out on_worker_boot. Otherwise, it sounds like configuring it in the controller or a middleware is your best bet.

I'm working on a project called biz-rails to make it easier to work with biz in a Rails environment out of the box. You might want to keep an eye out for that.

from biz.

craiglittle avatar craiglittle commented on June 13, 2024

@oslyak, I don't see anything actionable here on our part, so I'm going to close this for now. Please let me know if you continue to run into any issues with biz that you can't resolve.

from biz.

craiglittle avatar craiglittle commented on June 13, 2024

@oslyak, one more suggestion: If you want a global schedule shared across threads, you can always assign it to a global variable:

$biz = Biz::Schedule.new do |config|
  # ...
end

from biz.

oslyak avatar oslyak commented on June 13, 2024

Thank You.

2015-03-27 21:35 GMT+02:00 Craig Little [email protected]:

@oslyak https://github.com/oslyak, one more suggestion: If you want
global schedule shared across threads, you can always assign it to a global
variable:

$biz = Biz::Schedule.new do |config|

...end


Reply to this email directly or view it on GitHub
#18 (comment).

З найкращими побажаннями!
"СІРІУС центр автоматизації обліку" www.sirius.if.ua
Осляк Антон. +38 050 562-87-78
м. Івано-Франківськ, вул. Новгородська 39а тел/факс +38 (0342)75-40-44

from biz.

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.