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 {
URL *string
Folder *string
URL string
Webhook Webhook
Cron *string
}
+3 -3
View File
@@ -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 {