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

Wait for "Steady-State" before action? #93

Open
Jeppedy opened this issue Jan 25, 2023 · 1 comment
Open

Wait for "Steady-State" before action? #93

Jeppedy opened this issue Jan 25, 2023 · 1 comment

Comments

@Jeppedy
Copy link

Jeppedy commented Jan 25, 2023

I'm watching for new files, but they are written to over a long period (20 minutes). Does the tool have a check for file size steady-state, or a period of time the file has to be done changing before it triggers the action?

@joh
Copy link
Owner

joh commented Jan 25, 2023

Hmm, unfortunately no, the tool does not have such a feature. A somewhat related feature is the -1 flag, which ensures long-running commands are not re-run if a file changes while the command was running.

You could, of course, add such functionality as a bash script which would keep track of the file size of each file and not run the command until the file size hasn't changed for a given number of time.

Or even better, if you would like to add it and submit a PR, such a feature would be a welcome addition to when-changed :)

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

No branches or pull requests

2 participants