Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Reload modules #7

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

tingstad
Copy link
Collaborator

@tingstad tingstad commented Jul 3, 2022

This PR combines #5 and #6 Read them first.

https://github.com/tingstad/hotload/runs/7168717234?check_suite_focus=true

Adds a new step, ReloadModules, which reloads all watched modules except for the init module.

This step needs to know which modules have changed, which is currently only available in the main loops variables (new_changed, last_changed), so I pass this information to the step if it's named "ReloadModules". Other alternatives could be some global state, or passing some general state to all the steps.
@tingstad tingstad changed the title reloadalltest Reload all test Jul 3, 2022
@tingstad tingstad changed the title Reload all test Test: Reload modules Jul 3, 2022
@tingstad tingstad marked this pull request as draft July 13, 2022 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant