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

downloader import and development #11

Merged
merged 29 commits into from
Aug 16, 2024
Merged

downloader import and development #11

merged 29 commits into from
Aug 16, 2024

Conversation

craigsteffen
Copy link
Contributor

The beginning of the branch is pulling in the hard-coded version of Craig's original downloader.

Further commits have very preliminary versions of the Docker files. So far they build, the container runs, but the directories haven't been hooked up yet so that it actually writes files to disk. Further commits will enable those features.

We want to have it at least rudimentarily working with at least one tested download before merging this commit, but the PR is here for tracking and discussion.

craigsteffen and others added 11 commits August 6, 2024 13:35
Pre-containerization python downloader code.  Everything hard-coded,
this will be converted to a containerized version.
Prelim dockerfile and requirements for build testing; not tested at
all, just saved to transfer from machine to machine.
Now works from /data instead of from hard-coded directory.  The
assumption is that /data is an externally mounted-and-managed
directory.
Add downloader to build checks.  Untested as yet.
Tieing in /data directory to the build.
Adding entries for downloader in parallel with the other containered components.
Quick fix; statically fixes the name of the json file.  Doesn't fix
the real logic of extracting the name from the incoming packet (which
would future-proof this).
craigsteffen and others added 18 commits August 13, 2024 13:33
Downloader working and tested in local mode.  Seems to interact
correctly with rabbitmq.
Downloader script now gets URI from shell environment.  This MUST be
set or the downloader won't work.
main() runs in a "while True" loop.  Cleaning up a bunch of stuff
after that, which will never run but was bothering the syntax
validator.
Removed a catch clause that probably wasn't doing anything and
probably wans't needed.

Fixed a variable error that crept in from cut and paste.

Fixed grouping so that basic_ack and worker=None were at the right
level in the main cleanup loop.
Cleaned out some deprecated URI definition code that wasn't used any
more.
All print() statements replaced with (mostly) logging.debug, or in two
cases, logging.info.  Tested outside of container.
Flushing wget output so it's not cluttering up the command line output.
Apparently /dev/null doesn't play well in containers.  Replacing with
ordinary file name.
Tweaking mount points and making download agree with pipeline.
Cleaning up wget output in easiest way.
Apparently redirecting output, even to a benign file, causes heartburn
for apptainer.  Removing redirects.
Double-check merge by merging main into us first.
About to merge new release with downloader.
@craigsteffen craigsteffen marked this pull request as ready for review August 16, 2024 19:43
@craigsteffen craigsteffen merged commit 849a7c6 into main Aug 16, 2024
14 of 15 checks passed
@craigsteffen craigsteffen deleted the downloader_initial branch August 16, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants