Project

Profile

Help

Issue #7497

closed

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

Added by bmbouter about 4 years ago. Updated about 4 years 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

Actions
Actions #1

Updated by daviddavis about 4 years ago

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

Updated by bmbouter about 4 years ago

  • Description updated (diff)
Actions #3

Updated by bmbouter about 4 years ago

  • Description updated (diff)
Actions #4

Updated by bmbouter about 4 years 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
Actions #5

Updated by daviddavis about 4 years ago

  • Sprint set to Sprint 81
Actions #6

Updated by daviddavis about 4 years ago

  • Triaged changed from No to Yes
Actions #7

Updated by daviddavis about 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #8

Updated by pulpbot about 4 years ago

  • Status changed from ASSIGNED to POST

Added by daviddavis about 4 years ago

Revision 33ee3c1b | View on GitHub

Setting the reserved resource record when creating the task

fixes #7497

Actions #9

Updated by daviddavis about 4 years ago

  • Status changed from POST to MODIFIED
Actions #10

Updated by bmbouter about 4 years ago

  • Sprint/Milestone set to 3.7.0
Actions #11

Updated by pulpbot about 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF