Skip to content

Commit abfdf54

Browse files
authored
Merge pull request #581 from chengshifan/add-debug-code-for-gke
chore: change collecting logs timeout to 10 mins
2 parents 067faef + 0f3789b commit abfdf54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/handlers/job_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def post(self):
641641
SELECT id
642642
FROM job
643643
WHERE id = %s
644-
AND (state = 'running' OR end_date > NOW() - INTERVAL '5 minutes')
644+
AND (state = 'running' OR end_date > NOW() - INTERVAL '15 minutes')
645645
''', [job_id])
646646

647647
if not j:

src/services/gcp/pkg/stub/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ func collectLogs(c *RemoteCluster, cr *v1alpha1.GKECluster, log *logrus.Entry, s
464464

465465
for {
466466
select {
467-
case <-time.After(time.Minute * 5):
467+
case <-time.After(time.Minute * 10):
468468
log.Infof("timeout collecting logs for %s", cr.Status.ClusterName)
469469
return
470470
case <-done:

0 commit comments

Comments
 (0)