Remove folder jobs and add Id to runner message
This commit is contained in:
+1
-2
@@ -10,8 +10,7 @@ type Webhook struct {
|
||||
}
|
||||
|
||||
type Job struct {
|
||||
URL *string
|
||||
Folder *string
|
||||
URL string
|
||||
Webhook Webhook
|
||||
Cron *string
|
||||
}
|
||||
|
||||
@@ -45,8 +45,8 @@ type Run struct {
|
||||
}
|
||||
|
||||
type runnerJob struct {
|
||||
URL *string
|
||||
Folder *string
|
||||
Id string
|
||||
URL string
|
||||
}
|
||||
|
||||
func runJobScheduler(j jobScheduler) {
|
||||
@@ -57,8 +57,8 @@ func runJobScheduler(j jobScheduler) {
|
||||
if job, exists := j.jobs[run.Name]; exists {
|
||||
log.Debugf("Finding runner for job \"%v\"", run.Name)
|
||||
rJ := runnerJob{
|
||||
Id: run.Name,
|
||||
URL: job.URL,
|
||||
Folder: job.Folder,
|
||||
}
|
||||
launched := false
|
||||
for i, runner := range j.connectedRunners {
|
||||
|
||||
Reference in New Issue
Block a user