Coder Social home page Coder Social logo

Comments (3)

etiennebarrie avatar etiennebarrie commented on June 12, 2024

It's possible to set the value in the application initializers because it's a ||=, that's why it's an after_initialize BTW. It doesn't pollute the global config because it respects it. Even something in after_initialize can be tweaked because after_initialize run in the railties order and the application is typically the last railtie, so an after_initialize from the application would override it, but it's not even necessary with the ||=.

We didn't use that option because it didn't exist at the time in job-iteration. We could use it, but you can also use it in your own custom job directly, so I'm not sure it's worth it if it means any breaking change here.

from maintenance_tasks.

etiennebarrie avatar etiennebarrie commented on June 12, 2024

Also that commit hasn't been released yet, so we still can't use it. And there's an issue with the implementation, it breaks JobIteration.max_job_runtime as far as I can see.

Edit: no it's fine because the global value is in the included hook.

from maintenance_tasks.

adamzapasnik avatar adamzapasnik commented on June 12, 2024

It's an old commit, thought it's been released already, sorry.

Well, after_initialize is necessary if you want max_job_runtime to stay nil. 🤔

Anyway, I agree it seems it's not worth the effort to introduce such change if no one else has complained. I'll close it, thank you for you time and help.

from maintenance_tasks.

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.