mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-12-18 11:52:16 +03:00
chore: Add time sleep 1 second.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
d359276fe1
commit
bca586ffd0
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,7 @@ package poller
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"time"
|
||||||
|
|
||||||
"gitea.com/gitea/act_runner/client"
|
"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 {
|
func (p *Poller) poll(ctx context.Context, thread int) error {
|
||||||
log.WithField("thread", thread).Info("poller: request stage from remote server")
|
log.WithField("thread", thread).Info("poller: request stage from remote server")
|
||||||
|
|
||||||
|
// TODO: fetch the job from remote server
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue