2026-03-31 07:27:15 +00:00
|
|
|
// SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
|
|
|
|
|
package agentic
|
|
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
|
|
func Example_shouldSyncStatus() {
|
|
|
|
|
fmt.Println(shouldSyncStatus("completed"))
|
|
|
|
|
fmt.Println(shouldSyncStatus("running"))
|
|
|
|
|
// Output:
|
|
|
|
|
// true
|
|
|
|
|
// false
|
|
|
|
|
}
|
2026-04-14 12:06:04 +01:00
|
|
|
|
|
|
|
|
func Example_syncBackoffSchedule() {
|
|
|
|
|
fmt.Println(syncBackoffSchedule(1))
|
|
|
|
|
fmt.Println(syncBackoffSchedule(2))
|
|
|
|
|
fmt.Println(syncBackoffSchedule(3))
|
|
|
|
|
fmt.Println(syncBackoffSchedule(4))
|
|
|
|
|
fmt.Println(syncBackoffSchedule(5))
|
|
|
|
|
// Output:
|
|
|
|
|
// 1s
|
|
|
|
|
// 5s
|
|
|
|
|
// 15s
|
|
|
|
|
// 1m0s
|
|
|
|
|
// 5m0s
|
|
|
|
|
}
|