Skip to content

Conversation

@lizard-boy
Copy link
Collaborator

No description provided.

Copy link

@greptile-apps greptile-apps bot left a comment

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.

3 participants