Skip to content

Commit e987065

Browse files
committed
fix(pipeline): adjust monitoring timeout and delay settings
Increase timeout from 30 to 35 minutes and initial delay from 3 to 4 minutes to account for network delays. Remove timeout notification to reduce noise.
1 parent db78ba2 commit e987065

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

core/src/233/main/kotlin/cc/unitmesh/devti/observer/PipelineStatusProcessor.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import java.util.zip.ZipInputStream
2727
class PipelineStatusProcessor : AgentObserver, GitPushListener {
2828
private val log = Logger.getInstance(PipelineStatusProcessor::class.java)
2929
private var monitoringJob: ScheduledFuture<*>? = null
30-
private val timeoutMinutes = 30
30+
/// we limit for 4mins delay + 1mins networks (maybe) request + 30mins
31+
private val timeoutMinutes = 35
3132
private var project: Project? = null
3233

3334
override fun onCompleted(repository: GitRepository, pushResult: GitPushRepoResult) {
@@ -87,11 +88,6 @@ class PipelineStatusProcessor : AgentObserver, GitPushListener {
8788

8889
if (elapsedMinutes >= timeoutMinutes) {
8990
log.info("Pipeline monitoring timeout reached for commit: $commitSha")
90-
AutoDevNotifications.notify(
91-
project!!,
92-
"GitHub Action monitoring timeout (30 minutes) for commit: ${commitSha.take(7)}",
93-
NotificationType.WARNING
94-
)
9591
stopMonitoring()
9692
return@scheduleWithFixedDelay
9793
}
@@ -125,7 +121,7 @@ class PipelineStatusProcessor : AgentObserver, GitPushListener {
125121
)
126122
stopMonitoring()
127123
}
128-
}, 3, 5, TimeUnit.MINUTES) // 1分钟后开始第一次检查,然后每5分钟检查一次
124+
}, 4, 5, TimeUnit.MINUTES) // 1分钟后开始第一次检查,然后每5分钟检查一次
129125
}
130126

131127
private fun findWorkflowRunForCommit(remoteUrl: String, commitSha: String): GHWorkflowRun? {

0 commit comments

Comments
 (0)