Skip to content

Commit

Permalink
fix: detecting service IPs and fetching logs (#5952)
Browse files Browse the repository at this point in the history
* fix: saving output (so the service IP is accessible for Toolkit)
* fix: add correlation group for services (so they can be scrapped later)
  • Loading branch information
rangoo94 authored Oct 21, 2024
1 parent d30799b commit 24abeeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/tcl/testworkflow-toolkit/commands/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func NewServicesCmd() *cobra.Command {
scheduledAt := time.Now()
result, err := spawn.ExecutionWorker().Service(context.Background(), executionworkertypes.ServiceRequest{
ResourceId: cfg.Resource.Id,
GroupId: groupRef,
Execution: cfg.Execution,
Workflow: testworkflowsv1.TestWorkflow{Spec: instance.Spec},
ScheduledAt: &scheduledAt,
Expand Down
4 changes: 4 additions & 0 deletions cmd/testworkflow-init/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ func main() {
}

case lite.ActionTypeExecute:
// Ensure the latest state before each execute,
// as it may refer to the state file (Toolkit).
data.SaveState()

// Ignore running when the step is already resolved (= skipped)
step := state.GetStep(action.Execute.Ref)
if step.IsFinished() {
Expand Down

0 comments on commit 24abeeb

Please sign in to comment.