From 67609c50ee3603cfcec063355b712734c208dd9e Mon Sep 17 00:00:00 2001 From: whywaita Date: Fri, 4 Nov 2022 11:37:34 +0900 Subject: [PATCH] Not deleting before limit of GitHub Actions Co-authored-by: camonster --- pkg/runner/runner.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index 956b354..9a07e79 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -11,8 +11,9 @@ import ( var ( // GoalCheckerInterval is interval time of check deleting runner GoalCheckerInterval = 1 * time.Minute - // MustGoalTime is hard limit for idle runner - MustGoalTime = 1 * time.Hour + // MustGoalTime is hard limit for idle runner. + // So it is same as the limit of GitHub Actions + MustGoalTime = 6 * time.Hour // MustRunningTime is set time of instance create + download binaries + etc MustRunningTime = 5 * time.Minute // TargetTokenInterval is interval time of checking target token