chore: Add time sleep 1 second.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2022-08-14 11:17:55 +08:00 committed by Jason Song
parent d359276fe1
commit bca586ffd0
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package poller
import (
"context"
"time"
"gitea.com/gitea/act_runner/client"
@ -49,5 +50,8 @@ func (p *Poller) Poll(ctx context.Context, n int) {
func (p *Poller) poll(ctx context.Context, thread int) error {
log.WithField("thread", thread).Info("poller: request stage from remote server")
// TODO: fetch the job from remote server
time.Sleep(time.Second)
return nil
}