[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "bug" where function timeout option did not apply to Functions Emulator. #4745

Merged
merged 4 commits into from
Jul 20, 2022

Conversation

taeold
Copy link
Contributor
@taeold taeold commented Jul 14, 2022

Several months ago, we started to refactor the Functions Emulator with the goal of the Emulator implement more closely resembling how GCF works.

One way the Emulator and GCF differed was how timeout was enforced - in GCF that work was done outside of the runtime process whereas in the emulated environment it was enforced by the runtime process itself.

Our work on redesigning the emulator still has much more work to do. It was premature of me to remove a well working feature - again, hubris got the best of me ("I'll add the feature back in just a week or two!".

Many users have spoken out - so I'm proposing here we bring back the timeout feature I ripped out few months ago. It'll be our responsibility to preserve this feature in the redesign-ed the Emulator.

Fixes #2837

@codecov-commenter
Copy link
codecov-commenter commented Jul 14, 2022

Codecov Report

Merging #4745 (ab82c46) into master (266e1d7) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #4745   +/-   ##
=======================================
  Coverage   57.66%   57.66%           
=======================================
  Files         287      287           
  Lines       18546    18548    +2     
  Branches     3628     3629    +1     
=======================================
+ Hits        10694    10696    +2     
- Misses       6978     6979    +1     
+ Partials      874      873    -1     
Impacted Files Coverage Δ
src/emulator/functionsEmulator.ts 5.99% <0.00%> (-0.02%) ⬇️
src/emulator/auth/state.ts 85.35% <0.00%> (+0.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 266e1d7...ab82c46. Read the comment docs.

@taeold taeold enabled auto-merge (squash) July 20, 2022 17:03
@taeold taeold merged commit 14a74a9 into master Jul 20, 2022
@absemetov
Copy link
absemetov commented Jul 30, 2022

When I use cli v11.* (11.4.0) my functions not work Error("Function timed out.").
v11.2.2 work good
11.2.2

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.

Functions emulator does not honor timeoutSeconds
4 participants