Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #26056

Stem should optionally timeout when building circuits

I recently found out that CircuitBuildTimeout 10\nLearnCircuitBuildTimeout 0 doesn't always make your circuit build attempts timeout after 10 seconds. In an attemp to avoid repeating myself, I think the commit message0 has a good summary of why.

I would find it immensely useful if stem could optionally take a timeout on its new_circuit function that would raise an exception when the timeout is hit. For completeness, I imagine new_circuit's sibling functions like extend_circuit should probably also take a timeout.

For the time being, I've implemented a work around in sbws. I am providing the commit that makes the change in case it would be helpful for doing something similar in stem. I think it's messy, gross, and probably needlessly complicated. Do with it what you will :) I hope someday soon I can burn it with fire.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking