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

Check if file is empty #51

Closed
tiagofilipe12 opened this issue Jun 1, 2017 · 3 comments
Closed

Check if file is empty #51

tiagofilipe12 opened this issue Jun 1, 2017 · 3 comments

Comments

@tiagofilipe12
Copy link
Member

While running a task watermill should check if file is empty before executing it. One simple way to do so would be to check if file size is 0.

@thejmazz
Copy link
Member

thejmazz commented Jun 2, 2017

There is code for this but it was toggled off near the end of my GSOC.

This is part of "validators", which can be ran before a task, after a task, and later we should add the ability for users to pass per filetype validators per task, stream validators (i.e. check if each object has required keys), etc

@thejmazz
Copy link
Member

thejmazz commented Jun 2, 2017

We should close this issue once that validation is re-enabled and we have tests for this

@tiagofilipe12
Copy link
Member Author

Since I couldn't replicate this I will close it.

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

No branches or pull requests

3 participants