Giter Club home page Giter Club logo

Comments (3)

iennae avatar iennae commented on August 19, 2024

@tas50 @lamont-granquist thoughts on this issue?

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on August 19, 2024

the problem is that even when we do not run with interval mode we still tend to create the supervisor process and fork off a child process to do the work.

for example, when running chef-client from the command line you actually get two process. this is all likely overly complicated and poor, but the locking conditions, particularly in buggy chef 11-era versions, will still crop up if you try to exec with the supervisor process running. i'm fairly sure that chef-client --no-fork avoids the creation of the supervisor.

so you could check that chef-client is both not running in interval mode and is running no_fork and then switch to exec. and you have to check both because we used to support non-forking interval runs before 12, you can't only check no_fork.

but then the use case becomes a lot more limited since mostly nothing invokes chef-client with --no-fork afaik, and this won't fix anyone's test-kitchen runs.

i think we're long past time to fix that behavior at which point this does get more useful:

chef/chef#6712

but this here would need to check no_fork && !interval correctly.

from chef_client_updater.

lamont-granquist avatar lamont-granquist commented on August 19, 2024

(or i guess interval runs don't matter and its only no_fork that matters?)

from chef_client_updater.

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.