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 {
|
type Job struct {
|
||||||
URL *string
|
URL string
|
||||||
Folder *string
|
|
||||||
Webhook Webhook
|
Webhook Webhook
|
||||||
Cron *string
|
Cron *string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user