Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Jul 16, 2024
1 parent 27a350c commit 0ae89ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions flyteplugins/go/tasks/plugins/testing/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ func (e *EchoPlugin) GetProperties() core.PluginProperties {
return core.PluginProperties{}
}

// Enqueue the task to be re-evaluated after SleepDuration.
// If the task is already enqueued, return the start time of the task.
func (e *EchoPlugin) addTask(ctx context.Context, tCtx core.TaskExecutionContext) time.Time {
e.Lock()
defer e.Unlock()

Check warning on line 39 in flyteplugins/go/tasks/plugins/testing/echo.go

View check run for this annotation

Codecov / codecov/patch

flyteplugins/go/tasks/plugins/testing/echo.go#L37-L39

Added lines #L37 - L39 were not covered by tests
Expand All @@ -54,6 +56,7 @@ func (e *EchoPlugin) addTask(ctx context.Context, tCtx core.TaskExecutionContext
return startTime

Check warning on line 56 in flyteplugins/go/tasks/plugins/testing/echo.go

View check run for this annotation

Codecov / codecov/patch

flyteplugins/go/tasks/plugins/testing/echo.go#L56

Added line #L56 was not covered by tests
}

// Remove the task from the taskStartTimes map.
func (e *EchoPlugin) removeTask(taskExecutionID string) {
e.Lock()
defer e.Unlock()
Expand Down Expand Up @@ -86,6 +89,7 @@ func (e *EchoPlugin) Finalize(ctx context.Context, tCtx core.TaskExecutionContex
return nil
}

// copyInputsToOutputs copies the input literals to the output location.
func copyInputsToOutputs(ctx context.Context, tCtx core.TaskExecutionContext) (core.Transition, error) {
inputToOutputVariableMappings, err := compileInputToOutputVariableMappings(ctx, tCtx)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion flytepropeller/pkg/controller/nodes/branch/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ func (b *branchHandler) recurseDownstream(ctx context.Context, nCtx interfaces.N

if downstreamStatus.IsComplete() {
// For branch node we set the output node to be the same as the child nodes output
nCtx.NodeStateWriter()
phase := handler.PhaseInfoSuccess(&handler.ExecutionInfo{
OutputInfo: &handler.OutputInfo{OutputURI: v1alpha1.GetOutputsFile(childNodeStatus.GetOutputDir())},
})
Expand Down

0 comments on commit 0ae89ac

Please sign in to comment.