Project

Profile

Help

Task #3871

closed

Task model has PK that is not consistent with the rest of the data model.

Added by jortel@redhat.com almost 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:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 46
Quarter:

Description

The Task.id is still a UUID. Consistency in a relational schema is important. We should add a Task.job_id (uuid) to correlate with rq/redis.

https://github.com/pulp/pulp/blob/master/pulpcore/pulpcore/app/models/task.py#L269

Actions #1

Updated by jortel@redhat.com almost 6 years ago

  • Description updated (diff)
Actions #2

Updated by daviddavis almost 6 years ago

  • Tracker changed from Issue to Task
  • Sprint/Milestone set to 3.0.0
  • % Done set to 0
Actions #3

Updated by bmbouter almost 6 years ago

I think this is a fine idea. +1.

Actions #4

Updated by CodeHeeler over 5 years ago

  • Assignee set to CodeHeeler
Actions #5

Updated by CodeHeeler over 5 years ago

  • Sprint set to Sprint 44
Actions #6

Updated by jortel@redhat.com over 5 years ago

  • Status changed from NEW to ASSIGNED
Actions #7

Updated by jortel@redhat.com over 5 years ago

  • Tags Pulp 3 added
Actions #8

Updated by rchan over 5 years ago

  • Sprint changed from Sprint 44 to Sprint 45
Actions #9

Updated by rchan over 5 years ago

  • Sprint changed from Sprint 45 to Sprint 46
Actions #10

Updated by daviddavis over 5 years ago

  • Assignee changed from CodeHeeler to daviddavis

Should I expose job_id in the REST API? On the one hand, it shouldn't be something users need or ought to know but on the other, it might help to debug.

Actions #11

Updated by bmbouter over 5 years ago

+1 to exposing it. They may want to correlate it with a RQ monitoring system they setup separately.

Actions #12

Updated by jortel@redhat.com over 5 years ago

bmbouter wrote:

+1 to exposing it. They may want to correlate it with a RQ monitoring system they setup separately.

+1 for same ^^ reasons.

Actions #13

Updated by daviddavis over 5 years ago

  • Status changed from ASSIGNED to POST

Added by daviddavis over 5 years ago

Revision 06445689 | View on GitHub

Create a new Task field job_id to store rq job ids

fixes #3871 https://pulp.plan.io/issues/3871

Added by daviddavis over 5 years ago

Revision 06445689 | View on GitHub

Create a new Task field job_id to store rq job ids

fixes #3871 https://pulp.plan.io/issues/3871

Actions #14

Updated by daviddavis over 5 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #15

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)
Actions #16

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF