Project

Profile

Help

Story #851

As a user, I can see tasks in particular states

Added by mhrivnak over 6 years ago. Updated over 2 years ago.

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

100%

Estimated time:
Platform Release:
2.7.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
April 2015
Quarter:

Description

Deliverables

  • "tasks list" by default only shows waiting and running
  • "tasks list" has options to specify which states you want, including maybe a "--all", maybe "--states" as a CSV field, etc.
  • "tasks list" by default sorts chronologically by queued time (we can use the mongo ID for that)

Related issues

Related to Pulp - Story #941: As a user, I can list tasks by resource nameCLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Related to Pulp - Issue #1041: Fix the discrepancy in the task state shown in the api and pulp-adminCLOSED - WONTFIX<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Related to Pulp - Task #1028: Search and destroy the word 'cancelled' and modify to 'canceled'CLOSED - WONTFIX

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

Associated revisions

Revision 1d2bf73b View on GitHub
Added by ipanova@redhat.com over 6 years ago

As a user, I can see tasks in particular states.

closes #851

Revision 1d2bf73b View on GitHub
Added by ipanova@redhat.com over 6 years ago

As a user, I can see tasks in particular states.

closes #851

Revision 745f1443 View on GitHub
Added by ipanova@redhat.com over 6 years ago

Adding temporary fix for task state discrepancies.

closes #851 https://pulp.plan.io/issues/851

Revision 745f1443 View on GitHub
Added by ipanova@redhat.com over 6 years ago

Adding temporary fix for task state discrepancies.

closes #851 https://pulp.plan.io/issues/851

History

#1 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com

#2 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from ASSIGNED to POST
  • % Done changed from 0 to 100

#3 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED
  • Sprint/Milestone set to 15
  • Platform Release set to 2.7.0

#5 Updated by bmbouter over 6 years ago

  • Related to Story #941: As a user, I can list tasks by resource name added

#6 Updated by bmbouter over 6 years ago

  • Groomed set to Yes
  • Tags deleted (Groomed)

#7 Updated by bmbouter over 6 years ago

  • Sprint Candidate set to Yes
  • Tags deleted (Sprint Candidate)

#8 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from MODIFIED to 5

#9 Updated by ipanova@redhat.com over 6 years ago

To verify this:
- check that '--all' works as supposed
- check that '--state' works as supposed
- check that only waiting and running tasks are showed by default

#10 Updated by pthomas@redhat.com over 6 years ago

  • Status changed from 5 to ASSIGNED

fails-qa

Looks like the --state is not working

[root@qe-blade-10 ~]# pulp-admin tasks list --state
Usage: pulp-admin [options]

Command: list
Description: lists tasks queued (waiting) or running on the server

Available Arguments:

  --all, -a   - if specified, all tasks in all states are shown
  --state, -s - comma-separated list of tasks states desired to be shown.
                Example: "running,waiting,canceled,successful,failed". Do not
                include spaces
[root@qe-blade-10 ~]# pulp-admin tasks list --state successful
+----------------------------------------------------------------------+
                                 Tasks
+----------------------------------------------------------------------+

No tasks found

[root@qe-blade-10 ~]# 
[root@qe-blade-10 ~]# pulp-admin tasks list --all
+----------------------------------------------------------------------+
                                 Tasks
+----------------------------------------------------------------------+

Operations:  sync
Resources:   zoo (repository)
State:       Successful
Start Time:  2015-06-30T14:46:27Z
Finish Time: 2015-06-30T14:46:38Z
Task Id:     50097163-c90f-49fa-80ff-a301620a5ad6

Operations:  publish
Resources:   zoo (repository)
State:       Successful
Start Time:  2015-06-30T14:46:38Z
Finish Time: 2015-06-30T14:46:38Z
Task Id:     2d47229d-258a-4c7d-83e6-24f1dd1f136c

Operations:  unassociate
Resources:   zoo (repository)
State:       Successful
Start Time:  2015-06-30T14:47:17Z
Finish Time: 2015-06-30T14:47:17Z
Task Id:     20d8c6bb-d0cb-460c-8c5a-f1e9c07b1407

Operations:  unassociate
Resources:   zoo (repository)
State:       Successful
Start Time:  2015-06-30T14:47:42Z
Finish Time: 2015-06-30T14:47:42Z
Task Id:     402f0ff7-414a-401f-952e-454fe2ac0047

#11 Updated by ipanova@redhat.com over 6 years ago

  • Related to Issue #1041: Fix the discrepancy in the task state shown in the api and pulp-admin added

#12 Updated by ipanova@redhat.com over 6 years ago

  • Related to Task #1028: Search and destroy the word 'cancelled' and modify to 'canceled' added

#13 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from ASSIGNED to POST

#14 Updated by ipanova@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED

#15 Updated by dkliban@redhat.com about 6 years ago

  • Status changed from MODIFIED to 5

#17 Updated by rbarlow over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#20 Updated by bmbouter over 3 years ago

  • Sprint set to April 2015

#21 Updated by bmbouter over 3 years ago

  • Sprint/Milestone deleted (15)

#22 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF