Skip to content

Commit 43bd301

Browse files
committed
Merge branch 'main' into demo
2 parents fb69a11 + 0dc898c commit 43bd301

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

server/pkg/executor/worker.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ import (
2020
)
2121

2222
const (
23-
Idle status = "idle"
24-
Running status = "running"
25-
Finished status = "finished"
23+
Idle status = "idle"
24+
Running status = "running"
25+
Finished status = "finished"
26+
poll time.Duration = 4
2627
)
2728

2829
var (
@@ -149,7 +150,7 @@ func (e *Executor) Run(ctx context.Context, conf models.Request) (err error) {
149150
finished := make(chan error)
150151
// when the runScen finished, we should stop the logScaled and systemloadRun
151152
// also; however, not necessary since the executor will be shutdown anyway
152-
go e.logScaled(ctx, 3*time.Second)
153+
go e.logScaled(ctx, poll*time.Second)
153154
select {
154155
case err = <-finished:
155156
case <-ctx.Done():

server/pkg/middleware/jwt.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ func JWTProtected(c *fiber.Ctx) error {
5454

5555
var tokenString string
5656
authorization := c.Get("Authorization")
57-
5857
if c.Cookies("__session") != "" {
59-
tokenString = c.Cookies("token")
58+
tokenString = c.Cookies("__session")
6059
} else if strings.HasPrefix(authorization, "Bearer ") {
6160
tokenString = strings.TrimPrefix(authorization, "Bearer ")
6261
}

ui/public/logo.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

ui/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)