Skip to content

Commit

Permalink
fix(slimfaas): async call setlastticks missing
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Oct 9, 2024
1 parent 2fe7cbf commit 4e5e779
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions demo/deployment-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
annotations:
SlimFaas/Function: "true"
SlimFaas/TimeoutSecondBeforeSetReplicasMin: "10"
SlimFaas/NumberParallelRequest : "1"
spec:
serviceAccountName: default
automountServiceAccountToken: false
Expand Down Expand Up @@ -119,8 +120,8 @@ spec:
env:
- name: ASPNETCORE_URLS
value: http://+:5000
- name: Logging__LogLevel__Default
value: Warning
#- name: Logging__LogLevel__Default
# value: Warning
resources:
limits:
memory: "512Mi"
Expand Down
4 changes: 2 additions & 2 deletions src/FibonacciReact/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/png" href="/AXA.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>SlimFaas demo</title>
</head>
<body>
<div id="root"></div>
Expand Down
Binary file added src/FibonacciReact/public/AXA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/SlimFaas/SlimWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ private int ManageProcessingTasks(Dictionary<string, IList<RequestToWait>> proce
{
try
{
historyHttpService.SetTickLastCall(functionDeployment, DateTime.UtcNow.Ticks);
if (!processing.Task.IsCompleted)
{
continue;
Expand All @@ -156,7 +157,6 @@ private int ManageProcessingTasks(Dictionary<string, IList<RequestToWait>> proce
processing.CustomRequest.Method, processing.CustomRequest.Path, processing.CustomRequest.Query,
httpResponseMessage.StatusCode);
httpResponseMessagesToDelete.Add(processing);
historyHttpService.SetTickLastCall(functionDeployment, DateTime.UtcNow.Ticks);
}
catch (Exception e)
{
Expand Down

0 comments on commit 4e5e779

Please sign in to comment.