fix(runner): check token

This commit is contained in:
Denis Gukov 2024-01-07 21:35:02 +05:00
parent 5596943433
commit 8263693622

View File

@ -405,6 +405,8 @@ func (p *JobPool) checkNewJobs() {
req, err := http.NewRequest("GET", url, nil)
req.Header.Set("X-API-Token", p.config.Token)
if err != nil {
fmt.Println("Error creating request:", err)
return