Skip to content

Leverage dataplugin types - #440

Draft
ctrl-schaff wants to merge 10 commits into
1.1.xfrom
leverage-dataplugin-types
Draft

Leverage dataplugin types#440
ctrl-schaff wants to merge 10 commits into
1.1.xfrom
leverage-dataplugin-types

Conversation

@ctrl-schaff

Copy link
Copy Markdown
Contributor

Replaces our dataplugin templates with type based class generation in order to help us eventually migrate to updating our job manager strategy to use forkserver

This change only updates the dumper templates at the moment.
It deletes the dumper templates and replaces it with a metatype
and a factory for generating the dumper class instances.

The docker dumper template is replace with a transport instance that
determines what protocol we use with our dumper instance. If more work
is needed for the docker dumper template, we can always make a metatype
for it as well

Once this proof of concept has been tested in the job manager loop,
we can then do the same with the uploader, which while more complex
should go faster as I've already thought about how to do it through
the dumper transistion
Was causing a warning when running pytest, so this eliminates
that warning
Adds the metatypes module with the shared infrastructure
between the dumper and uploader type that's defined along
with our definition to build our data type
This still uses the older version of how I thought the class would
look. We need to apply the changes learned from the dumper to the
uploader, mainly in separating out the function calls to be external
to the type defintion
The loader no longer is responsible for creating the type definitions
from the templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant