Skip to content

Commit

Permalink
Remove stale code warning (Issue #7388, PR #7396)
Browse files Browse the repository at this point in the history
Cleanup code folder on agent restart

closes  #7388

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [X] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
- [ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)
  • Loading branch information
wouterdb committed Mar 22, 2024
1 parent 1f4d680 commit 3001d7a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/inmanta/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,11 +1325,6 @@ async def ensure_code(self, environment: uuid.UUID, version: int, resource_types
# store it outside the loop, but only load when required
pip_config: Optional[PipConfig] = None

# The names of the modules that are included in the requirements list of a module source.
all_required_modules: set[str] = set()
# The names of the modules for which the source code was installed.
all_installed_modules: set[str] = set()

for rt in set(resource_types):
# only one logical thread can load a particular resource type at any time
async with self._resource_loader_lock.get(rt):
Expand Down

0 comments on commit 3001d7a

Please sign in to comment.