Issue #3252
closed
Refactor Importer and Publishers, move sync and publish to tasks
Status:
CLOSED - DUPLICATE
- Description updated (diff)
Designing in this way would make high level architecture for plugins more obvious to plugin writers, including how transparent Pulp is about what happens under the hood.o The boilerplate app code (provided by the plugin template) would look like:
app/
models.py
viewsets.py
tasks.pyt
...
Models are concerned only with the database and are no longer concerned with complex behaviors. Tasks are functions that run asynchronously. ViewSets CRUD models and dispatch Tasks to pulpcore's celery.
- Description updated (diff)
- Status changed from NEW to CLOSED - DUPLICATE
- Parent issue set to #3074
- Parent issue deleted (
#3074)
Also available in: Atom
PDF