Skip to content

Commit

Permalink
Merge pull request #581 from chengshifan/add-debug-code-for-gke
Browse files Browse the repository at this point in the history
chore: change collecting logs timeout to 10 mins
  • Loading branch information
chengshifan authored Sep 10, 2024
2 parents 067faef + 0f3789b commit abfdf54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/handlers/job_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def post(self):
SELECT id
FROM job
WHERE id = %s
AND (state = 'running' OR end_date > NOW() - INTERVAL '5 minutes')
AND (state = 'running' OR end_date > NOW() - INTERVAL '15 minutes')
''', [job_id])

if not j:
Expand Down
2 changes: 1 addition & 1 deletion src/services/gcp/pkg/stub/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func collectLogs(c *RemoteCluster, cr *v1alpha1.GKECluster, log *logrus.Entry, s

for {
select {
case <-time.After(time.Minute * 5):
case <-time.After(time.Minute * 10):
log.Infof("timeout collecting logs for %s", cr.Status.ClusterName)
return
case <-done:
Expand Down

0 comments on commit abfdf54

Please sign in to comment.