-
Notifications
You must be signed in to change notification settings - Fork 0
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
Move new files filtering to earlier #29
Conversation
Hi @eddycek This is a little PR to apply the new file filtering during the preparation step. I was wondering if it wouldn't make sense also to apply this filter before the glob filter (since that is what I think takes the most time https://github.com/keboola/ex-ftp/blob/master/src/FtpExtractor.php#L129). I was looking at the job log and it took 26 sec for the prepare 10 files step and I think the glob validator may be the culprit, so reducing the amount of files we send to that loop could be helpful. Anyhow, just a couple thoughts. cheers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks @eddycek , I'll add it and we can always take it or leave it :-) |
huh, I think I've found a bug. I'm going to add a newFilesOnly test or two. |
heh, not a bug in the original, but I think I created one :-). almost got it sorted. |
@pivnicek What's the problem? |
ah, I seem to have forgotten about this :-) The main issue is that the I would like to change it into 2 methods: |
@pivnicek oh, it really looks it must be splitted 👍 |
b081d9f
to
1ad8b42
Compare
I added new tests, and they're passing locally, but the test where I add a file on the fly is not working on travis :-/ https://travis-ci.com/keboola/ex-ftp |
@pivnicek strange error, did you try to restart the build? |
it fails consistently, but I see why now. |
I added the volume mapping for the testfile dir to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few things
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thanks @eddycek 🍻 |
fixes #28