Skip to content

Commit

Permalink
fix: wip: Cloning actor
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyaPeyaPeyang committed Apr 29, 2024
1 parent f93a9e1 commit dec4798
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
lookup-only: true
- name: Build NMS if cache miss
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: PeyaPeyaPeyang/nmsaction@v6
uses: PeyaPeyaPeyang/nmsaction@v9
with:
rev: ${{ matrix.nms-version }}
- name: Save caches
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scenamatica-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
lookup-only: true
- name: Build NMS if cache miss
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: PeyaPeyaPeyang/nmsaction@v8
uses: PeyaPeyaPeyang/nmsaction@v9
with:
rev: ${{ matrix.nms-version }}
- name: Save caches
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ public void destroyContext(Context context)
}

if (context.hasStage())
{
this.stageManager.destroyStage(context.getStage()); // StageNotCreatedException はチェック済み。

}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,22 @@ private void cleanUp()
);
if (this.context != null)
this.context.destroy();
System.out.println("Cleaning actions");
this.actions.stream()
.map(CompiledScenarioAction::getAction)
.map(CompiledAction::getContext)
.forEach(ActionContext::reset);
.map(s -> {
System.out.println("Cleaning action: " + s.getAction());
return s.getAction();
})
.map(s -> {
System.out.println("Cleaning action context: " + s.getContext());
return s.getContext();

})
.forEach(s -> {
System.out.println("Cleaning action context input: " + s);
s.reset();
});
System.out.println("actions cleaned");

this.executor = null;
this.ranBy = null;
Expand Down

0 comments on commit dec4798

Please sign in to comment.