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

File upload support #103

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft

File upload support #103

wants to merge 23 commits into from

Conversation

kgodlewski
Copy link
Contributor

@kgodlewski kgodlewski commented Dec 13, 2024

This PR is a part of a series. It's in draft, as there will be other PRs accumulating smaller features to the same branch kg/upload-files, then we can merge everything in one swoop

What it does:

  • adds all the underlying cruft for uploading files from the worker process
  • file upload operations are submitted via a special queue in the main process, and picked up by the worker process
  • takes in-flight uploads into account when closing the run (blocks until they are completed)
  • has some very basic tests

What it does not do:

  • backend interactions are currently mocked (we're waiting for support in the backend). Files are "uploaded" as string attributes.
  • tests are very basic and will be improved in next PRs
  • docs are rudimentary, CHANGELOG is left intact for now -- once we're happy with the shape we'll take care of these as well

@kgodlewski kgodlewski changed the base branch from kg/refactor-attribute-store to kg/auto-step December 13, 2024 10:09
@kgodlewski kgodlewski changed the base branch from kg/auto-step to kg/refactor-attribute-store December 17, 2024 14:55
@kgodlewski kgodlewski changed the title Skeleton for file upload support File upload support Dec 17, 2024
@kgodlewski kgodlewski force-pushed the kg/upload-files branch 7 times, most recently from b747d4f to be854d2 Compare December 18, 2024 11:25
@kgodlewski kgodlewski force-pushed the kg/refactor-attribute-store branch from 70fa6be to 3406313 Compare December 18, 2024 15:02
@kgodlewski kgodlewski force-pushed the kg/refactor-attribute-store branch from 0bf6895 to f933b08 Compare December 18, 2024 16:58
Rename the class and friends to `OperationDispatcherThread`
The package contains code for uploading files to Neptune.
This uses the new `sync.files` package.
# Conflicts:
#	src/neptune_scale/api/attribute.py
This is in line with `multiprocessing.Condition.wait*()`
Make this function return non-optional, as it makes little sense to do
otherwise
If true, all errors that are put in the error queue
are also logged with tracebacks.
Default: true.
@kgodlewski kgodlewski force-pushed the kg/upload-files branch 2 times, most recently from 5086372 to dd55939 Compare December 18, 2024 17:09
Copy link
Collaborator

@PatrykGala PatrykGala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Base automatically changed from kg/refactor-attribute-store to main December 19, 2024 10:24
@PatrykGala PatrykGala marked this pull request as draft December 19, 2024 10:31
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