Project

Profile

Help

Story #3044

closed

Distribution create/update operations should be asynchronous

Added by amacdona@redhat.com over 6 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 50
Quarter:

Description

To prevent race conditions related to base_path checking, Distribution create & update operations need to be done asynchronously under the protection of resource locking.

The plan:

  • The locked resource will be a (string) URL for the distribution resource collection: " /api/v3/distributions/"
    * The base_path checking needs to be moved from the serializer to the model.
  • Create a new AsyncCreateMixin following the same pattern as update & delete mixins.
  • The DistributionViewSet will use the AsyncUpdateMixin, AsyncDeleteMixin, and AsyncCreateMixin

Related issues

Related to Pulp - Refactor #3038: DRY up asynchronous update and delete tasksCLOSED - CURRENTRELEASEdkliban@redhat.com

Actions
Related to Pulp - Task #3051: Prevent Distribution base_path overlap in the data modelCLOSED - DUPLICATE

Actions
Blocked by Pulp - Story #4331: As a task writer, I can lock on an arbitrary stringCLOSED - CURRENTRELEASEjortel@redhat.com

Actions

Also available in: Atom PDF