Remove folder jobs and add Id to runner message

This commit is contained in:
2022-10-17 00:31:31 -06:00
parent bbe9dcaf2a
commit 447e269437
2 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -10,8 +10,7 @@ type Webhook struct {
} }
type Job struct { type Job struct {
URL *string URL string
Folder *string
Webhook Webhook Webhook Webhook
Cron *string Cron *string
} }
+3 -3
View File
@@ -45,8 +45,8 @@ type Run struct {
} }
type runnerJob struct { type runnerJob struct {
URL *string Id string
Folder *string URL string
} }
func runJobScheduler(j jobScheduler) { func runJobScheduler(j jobScheduler) {
@@ -57,8 +57,8 @@ func runJobScheduler(j jobScheduler) {
if job, exists := j.jobs[run.Name]; exists { if job, exists := j.jobs[run.Name]; exists {
log.Debugf("Finding runner for job \"%v\"", run.Name) log.Debugf("Finding runner for job \"%v\"", run.Name)
rJ := runnerJob{ rJ := runnerJob{
Id: run.Name,
URL: job.URL, URL: job.URL,
Folder: job.Folder,
} }
launched := false launched := false
for i, runner := range j.connectedRunners { for i, runner := range j.connectedRunners {