You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[local] Fix: Record end timestamp after function handler execution in Python on server - #354
The local Docker Python server measured only the time for a local import, without including the execution time of the function handler.
The other wrappers do measure the execution (as expected); For example, consider AWS or Nodejs
Summary by CodeRabbit
Bug Fixes
Request completion is now recorded after the request handler finishes, so processing time reflects the full request handling duration. This improves the accuracy of request timing measurements.
The local Python server now measures handler execution time, matching the other wrappers. No merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the change that the diff makes: the end timestamp in the local Python server is now recorded after the function handler runs. The raw summary confirms process_request now calls functio…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the change that the diff makes: the end timestamp in the local Python server is now recorded after the function handler runs. The raw summary confirms process_request now calls function.handler(request.json) before recording the end time. The PR objectives describe the same fix, which was to stop measuring only a local import and to include handler execution. The title is specific and matches the single-file change. It is slightly long at 86 characters, but that does not affect the verdict.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 9ce19605-8ed1-4c07-a43a-946d9574422c
Commits
Reviewing files that changed from the base of the PR and between 089e5c6 and 0a4651c.
Files selected for processing: 1
dockerfiles/local/python/server.py
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The local Docker Python server measured only the time for a local import, without including the execution time of the function handler.
The other wrappers do measure the execution (as expected); For example, consider AWS or Nodejs
Summary by CodeRabbit