Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanchewy committed Jun 18, 2020
1 parent c6c0571 commit 76af6f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Runner.Worker/ExecutionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public interface IExecutionContext : IRunnerService
// others
void ForceTaskComplete();
void RegisterPostJobStep(IStep step);
IStep RegisterCompositeStep(IStep step, Dictionary<string, string> inputs, DictionaryContextData inputsData);
IStep RegisterCompositeStep(IStep step, DictionaryContextData inputsData);
void EnqueueAllCompositeSteps(Queue<IStep> steps);
}

Expand Down Expand Up @@ -271,7 +271,7 @@ public void RegisterPostJobStep(IStep step)
RegisterCompositeStep is a helper function used in CompositeActionHandler::RunAsync to
add a child node, aka a step, to the current job to the front of the queue for processing.
*/
public IStep RegisterCompositeStep(IStep step, Dictionary<string, string> inputs, DictionaryContextData inputsData)
public IStep RegisterCompositeStep(IStep step, DictionaryContextData inputsData)
{
// ~Brute Force Method~
// There is no way to put this current job in front of the queue in < O(n) time where n = # of elements in JobSteps
Expand Down
2 changes: 1 addition & 1 deletion src/Runner.Worker/Handlers/CompositeActionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public Task RunAsync(ActionRunStage stage)
// TODO: Do we need to add any context data from the job message?
// (See JobExtension.cs ~line 236)

compositeActionSteps.Enqueue(ExecutionContext.RegisterCompositeStep(actionRunner, Inputs, inputsData));
compositeActionSteps.Enqueue(ExecutionContext.RegisterCompositeStep(actionRunner, inputsData));
}
ExecutionContext.EnqueueAllCompositeSteps(compositeActionSteps);

Expand Down

0 comments on commit 76af6f9

Please sign in to comment.