Skip to content

Commit

Permalink
eventJSON error
Browse files Browse the repository at this point in the history
  • Loading branch information
vicente87 committed Dec 10, 2024
1 parent 9d65f9d commit 1ae071f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/resourcemanager/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,9 @@ func DelegateJob(service *types.Service, event string, logger *log.Logger) error
postJobURL.Path = path.Join(postJobURL.Path, "job", replica.ServiceName)

// Make request to get service's definition (including token) from cluster
fmt.Println(eventJSON)
fmt.Println(string(eventJSON))
req, err := http.NewRequest(http.MethodPost, postJobURL.String(), bytes.NewBuffer(eventJSON))

if err != nil {
logger.Printf("Error delegating job from service \"%s\" to ClusterID \"%s\": unable to make request: %v\n", service.Name, replica.ClusterID, err)
continue
Expand Down

0 comments on commit 1ae071f

Please sign in to comment.