bionode / bionode-watermill

💧Bionode-Watermill: A (Not Yet Streaming) Workflow Engine
https://bionode.gitbooks.io/bionode-watermill/content/
MIT License
37 stars 11 forks source link

Check if file is empty #51

Closed tiagofilipe12 closed 6 years ago

tiagofilipe12 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

tiagofilipe12 commented 6 years ago

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