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

Watch files for changes #1

Closed
stylemistake opened this issue Aug 5, 2015 · 5 comments
Closed

Watch files for changes #1

stylemistake opened this issue Aug 5, 2015 · 5 comments
Assignees
Labels

Comments

@stylemistake
Copy link
Owner

stylemistake commented Aug 5, 2015

We need some function that would watch for file changes and run tasks when it detects changes.

Function should be called runner_watch.

Possible implementations:

  • using digest functions (sha1, sha256, md5, md5sum, etc...) and run through all the files with sleep 1 (not the best way)
  • plain bash just by checking update time on files (better)
  • use inotifywait (requires a dependency inotify-tools, can be optional, best method)
@stylemistake stylemistake self-assigned this Aug 5, 2015
@stylemistake stylemistake added this to the v0.2 milestone Aug 5, 2015
@stylemistake stylemistake removed this from the v0.3 milestone Sep 20, 2015
@bserem
Copy link

bserem commented Feb 13, 2019

Is this dropped or has it been implemented?

@stylemistake
Copy link
Owner Author

stylemistake commented Feb 14, 2019

I dropped this feature, as it seemed unnecessary for my use cases. For node, we have nodemon, webpack dev server/middleware; auto-reload out of the box for django, php or literally any CGI app.

It shouldn't be difficult to implement, tho.

@bserem
Copy link

bserem commented Feb 14, 2019

Thanks!

@stylemistake stylemistake reopened this Mar 18, 2019
@stylemistake
Copy link
Owner Author

Reopening this feature, because there might be a good use for it considering the current development in the "next" branch.

@oshliaer
Copy link

oshliaer commented Jan 23, 2021

I'm using watchman for re-run runner.

Unfortunately it looks like runner runs watchman for to run runner's tasks.

watchman is truly a powerful tool. It works with tens of thousands of files simultaneously at very low capacities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants