Skip to content

Commit

Permalink
Cleaning up and fix/complete example yaml for s3 stalking
Browse files Browse the repository at this point in the history
Signed-off-by: Adam.Dybbroe <a000680@c21856.ad.smhi.se>
  • Loading branch information
Adam.Dybbroe committed Apr 13, 2023
1 parent 8f050e9 commit d6fff2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 0 additions & 13 deletions bin/s3stalker_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"""

import argparse
import logging
import logging.config
import sys
Expand All @@ -36,18 +35,6 @@
logger = logging.getLogger(__name__)


def arg_parse():
"""Handle input arguments."""
parser = argparse.ArgumentParser()
parser.add_argument("bucket", help="The bucket to retrieve from.")
parser.add_argument("config", help="Config file to be used")
parser.add_argument("-l", "--log",
help="Log configuration file",
default=None)

return parser.parse_args()


def main():
"""Stalk an s3 bucket."""
bucket, config, log_config = get_configs_from_command_line()
Expand Down
2 changes: 2 additions & 0 deletions pytroll_collectors/s3stalker_daemon_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
minutes: 2
file_pattern: '{platform_name:3s}_OL_2_{datatype_id:_<6s}_{start_time:%Y%m%dT%H%M%S}_{end_time:%Y%m%dT%H%M%S}_{creation_time:%Y%m%dT%H%M%S}_{duration:4d}_{cycle:3d}_{relative_orbit:3d}_{frame:4d}_{centre:3s}_{mode:1s}_{timeliness:2s}_{collection:3s}.zip'
subject: /segment/2/safe-olci/S3/
publisher:
name: s3stalker_runner
""" # noqa
import signal
from datetime import timedelta, datetime
Expand Down

0 comments on commit d6fff2d

Please sign in to comment.