Skip to content

Sonalmahajan15/add back backprop timeout#7

Open
lizard-boy wants to merge 2 commits into
mainfrom
sonalmahajan15/add-back-backprop-timeout
Open

Sonalmahajan15/add back backprop timeout#7
lizard-boy wants to merge 2 commits into
mainfrom
sonalmahajan15/add-back-backprop-timeout

Conversation

@lizard-boy

Copy link
Copy Markdown

No description provided.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR adds a configurable timeout for function analysis by introducing the FuncAnalysisTimeout field and flag. It now uses a context with a deadline based on this timeout, improving control over long-running analyses.

• Updated /config/config.go to register and parse the 'func-analysis-timeout-in-sec' flag with a default of 1 second.
• Modified /assertion/function/analyzer.go to use the timeout when creating a context for function analysis.
• Reminder: log errors from context cancellation with logger.error(error) using the custom logging module.

💡 (5/5) You can turn off certain types of comments like style here!

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants