-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add an s3stalker daemon #114
Conversation
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Codecov Report
@@ Coverage Diff @@
## main #114 +/- ##
==========================================
+ Coverage 90.52% 91.22% +0.69%
==========================================
Files 22 27 +5
Lines 3577 3998 +421
==========================================
+ Hits 3238 3647 +409
- Misses 339 351 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
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.
Some comments, questions and suggestions :-)
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Co-authored-by: Panu Lahtinen <pnuu+git@iki.fi>
Co-authored-by: Panu Lahtinen <pnuu+git@iki.fi>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
…llectors into add-s3stalker-daemon # Conflicts: # bin/s3stalker_daemon.py Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Damn. Moving the |
Oh, I see now, that you only suggested moving the publisher creation to the run method, sorry will redo... |
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
# Conflicts: # .github/workflows/ci.yaml
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
Split s3stalker and daemon parts
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.
Some new comments.
pytroll_collectors/s3stalker.py
Outdated
@@ -54,6 +149,7 @@ class DatetimeHolder: | |||
|
|||
def get_last_files(path, *args, pattern=None, **kwargs): | |||
"""Get the last files from path (s3 bucket and directory).""" | |||
kwargs['skip_instance_cache'] = True |
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.
It just seemed a bit odd to modify the kwargs as the first thing in the function. Would it be more clear that it is set where the call to this function is so there are no side-effects when the call is made? I'm fine also with this, maybe a short explanation would be nice.
Co-authored-by: Panu Lahtinen <pnuu+git@iki.fi>
Co-authored-by: Panu Lahtinen <pnuu+git@iki.fi>
@pnuu I have addressed or answered your comments... |
Co-authored-by: Martin Raspaud <martin.raspaud@smhi.se>
I went through the unresolved comments, and only my two latest ones are still open. For some reason GitHub shows some of the comments without the ability to resolve them, so the comment section is a bit messy. |
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 for the updates!
Just one suggestion on the S3 credential configuration.
Co-authored-by: Panu Lahtinen <pnuu+git@iki.fi>
Add a runner or demon to stalk for new files in an S3 bucket based on the s3stalker script