Project

Profile

Help

Issue #7497

I can't see the reserved resource records from the moment they are dispatched

Added by bmbouter about 1 month ago. Updated 28 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 81
Quarter:

Description

Use case

Say you dispatch N repo sync's every 6 hours, where N is large > 500 repos. Then say the server's Pulp is syncing from are temporarily slow, so they tasks are backing up enough that another "set" of sync's are dispatched. The user would like to cancel enough sync's so that for each repository there is only one, but they cannot know which ones to cancel because the reserved_resource_records field is not yet set.

The issue

The records are being created in the resource_manager here but they should be created in the enqueue_with_reservation function when the task record itself is created.

Implementation

  1. Move this code to the enqueue_with_reservation function here.
  2. Ensure that the Task, ReservedResourceRecord, and TaskReservedResourceRecord are all created as one transaction.

Related issues

Has duplicate Pulp - Story #7496: As a user, I want to see what resources a task is waiting onCLOSED - DUPLICATE

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 33ee3c1b View on GitHub
Added by daviddavis about 1 month ago

Setting the reserved resource record when creating the task

fixes #7497

History

#1 Updated by daviddavis about 1 month ago

  • Has duplicate Story #7496: As a user, I want to see what resources a task is waiting on added

#2 Updated by bmbouter about 1 month ago

  • Description updated (diff)

#3 Updated by bmbouter about 1 month ago

  • Description updated (diff)

#4 Updated by bmbouter about 1 month ago

  • Tracker changed from Story to Issue
  • Subject changed from As a user, I can see the reserved resource records from the moment they are dispatched to I can't see the reserved resource records from the moment they are dispatched
  • Severity set to 2. Medium
  • Triaged set to No

#5 Updated by daviddavis about 1 month ago

  • Sprint set to Sprint 81

#6 Updated by daviddavis about 1 month ago

  • Triaged changed from No to Yes

#7 Updated by daviddavis about 1 month ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#8 Updated by pulpbot about 1 month ago

  • Status changed from ASSIGNED to POST

#9 Updated by daviddavis about 1 month ago

  • Status changed from POST to MODIFIED

#10 Updated by bmbouter 28 days ago

  • Sprint/Milestone set to 3.7.0

#11 Updated by pulpbot 28 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF