From bca586ffd0bb9a726aed8b3d86e7c76b6ca0c3ef Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 14 Aug 2022 11:17:55 +0800 Subject: [PATCH] chore: Add time sleep 1 second. Signed-off-by: Bo-Yi Wu --- poller/poller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/poller/poller.go b/poller/poller.go index c320d48..ae0b621 100644 --- a/poller/poller.go +++ b/poller/poller.go @@ -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 }