Code Monkey home page Code Monkey logo

Comments (6)

pmcnano avatar pmcnano commented on June 25, 2024 1

Hey! I'll get back to you tomorrow, however:

  1. Yes I am aware, but when they are forked the config is lost.
  2. You are right, my bad on the correct date.
  3. It's a hit or miss, depending on the process. I will re-test tomorrow and try to come up with something beter for testing.

from business_time.

pmcnano avatar pmcnano commented on June 25, 2024

Btw, now that I know this, I realize what happened back here: #206 so I am closing it.

from business_time.

rmm5t avatar rmm5t commented on June 25, 2024

I'm a tad confused by this report for multiple reasons:

  1. Puma workers are processes, not threads.
  2. The correct date for your scenario is June 1, 2021, not April 1.
    >> BusinessTime::Config.holidays << '2021-05-31'.to_date
    => #<Set: {Mon, 31 May 2021}>
    >> 1.business_day.after('2021-05-28'.to_date)
    => Tue, 01 Jun 2021
  3. I cannot reproduce your scenario using puma workers, even if it is related to the puma worker boot. Are you sure you performed a full restart of the application during your testing?

from business_time.

rmm5t avatar rmm5t commented on June 25, 2024

Thanks. A simple app that reproduces the issue would be much appreciated. Either way, this sounds like an issue outside of this gem, but it might be helpful in a README.

from business_time.

pmcnano avatar pmcnano commented on June 25, 2024

@rmm5t well, this has been eye opening. I wasn't able to replicate in the new minimal test app and I figured out what was happening. I thank you for your time.

So, what was happening is, at some point we started using some experimental options, specifically, fork_worker is the culprit.

I'm closing this and sorry for the time spent.

from business_time.

rmm5t avatar rmm5t commented on June 25, 2024

@pmcnano No worries. Thanks for the follow-up.

from business_time.

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.