Giter Club home page Giter Club logo

Comments (1)

knewbury01 avatar knewbury01 commented on June 16, 2024

Hey @rak3-sh ! thanks for the issue,

Unfortunately there currently isnt a CodeQL CLI flag to be able to say "one query should timeout after X minutes",

Because we evaluate all of a set of queries in parallel, they all start execution at the same time. However, not all of the queries are worked on most of the time meaning that the timeout flag is about the same as a timeout for the whole analyse call. A hypothetical CPU-time limiting flag would work a bit better but would end up with a similar lack of guarantee (on any individual query) because sharing means it is a bit awkward which query the work can be attributed to. Plus parallelism means that threading makes this weird. Practically most of the time the problem is in a library which means a global timeout is better as it can account for everything (and that is why we prefer to use an Actions level timeout on a job rather than implementing one in the CodeQL CLI)

from codeql-coding-standards.

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.