Skip to content

Commit

Permalink
fix: replay manual job and timeout issue (#767)
Browse files Browse the repository at this point in the history
* fix: ignore job that does not have schedule from replay tree

Co-authored-by: Sandeep Bhardwaj <[email protected]>

* chore: increase write and idle server timeout

Co-authored-by: Sandeep Bhardwaj <[email protected]>

---------

Co-authored-by: Sandeep Bhardwaj <[email protected]>
  • Loading branch information
arinda-arif and sbchaos authored Mar 29, 2023
1 parent 1dd694e commit 4ab86f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions job/replay.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ func findOrCreateDAGNode(dagTree *tree.MultiRootTree, dagSpec models.JobSpec) *t
func populateDownstreamRuns(parentNode *tree.TreeNode) (*tree.TreeNode, error) {
for idx, childNode := range parentNode.Dependents {
childDag := childNode.Data.(models.JobSpec)
if childDag.Schedule.Interval == "" {
continue
}
taskSchedule, err := cron.ParseCronSchedule(childDag.Schedule.Interval)
if err != nil {
return nil, err
Expand Down
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ func prepareHTTPProxy(grpcAddr string, grpcServer *grpc.Server) (*http.Server, f
Handler: grpcHandlerFunc(grpcServer, baseMux),
Addr: grpcAddr,
ReadTimeout: 5 * time.Second,
WriteTimeout: 60 * time.Second,
IdleTimeout: 120 * time.Second,
WriteTimeout: 30 * time.Minute,
IdleTimeout: 5 * time.Minute,
}

return srv, cleanup, nil
Expand Down

0 comments on commit 4ab86f0

Please sign in to comment.