We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14ef38b commit 3a7563cCopy full SHA for 3a7563c
pkg/api/rest/controller/cicadaTaskComponent.go
@@ -64,7 +64,7 @@ func RunScript(c echo.Context) error {
64
//
65
// @ID sleep-time
66
// @Summary Run sleep command on cicada
67
-// @Description Runs sleep command on cicada and waits for configured time.
+// @Description Runs sleep command on cicada and waits for configured time. Wait for 10 seconds if time value is not provided.
68
// @Tags [Cicada Task Component]
69
// @Accept json
70
// @Produce json
@@ -81,7 +81,7 @@ func SleepTime(c echo.Context) error {
81
}
82
83
if sleepTimeReq.Time == "" {
84
- return common.ReturnErrorMsg(c, "Please provide the time.")
+ sleepTimeReq.Time = "10s"
85
86
87
var result model.SimpleMsg
0 commit comments