Project

Profile

Help

Story #851

closed

As a user, I can see tasks in particular states

Added by mhrivnak about 9 years ago. Updated about 5 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

Actions
Related to Pulp - Issue #1041: Fix the discrepancy in the task state shown in the api and pulp-adminCLOSED - WONTFIXActions
Related to Pulp - Task #1028: Search and destroy the word 'cancelled' and modify to 'canceled'CLOSED - WONTFIX

Actions
Actions #1

Updated by ipanova@redhat.com about 9 years ago

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

Updated by ipanova@redhat.com about 9 years ago

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

Added by ipanova@redhat.com about 9 years ago

Revision 1d2bf73b | View on GitHub

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

closes #851

Added by ipanova@redhat.com about 9 years ago

Revision 1d2bf73b | View on GitHub

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

closes #851

Actions #3

Updated by ipanova@redhat.com about 9 years ago

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

Updated by bmbouter almost 9 years ago

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

Updated by bmbouter almost 9 years ago

  • Groomed set to Yes
  • Tags deleted (Groomed)
Actions #7

Updated by bmbouter almost 9 years ago

  • Sprint Candidate set to Yes
  • Tags deleted (Sprint Candidate)
Actions #8

Updated by dkliban@redhat.com almost 9 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by ipanova@redhat.com almost 9 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

Actions #10

Updated by pthomas@redhat.com almost 9 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
Actions #11

Updated by ipanova@redhat.com almost 9 years ago

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

Updated by ipanova@redhat.com almost 9 years ago

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

Updated by ipanova@redhat.com almost 9 years ago

  • Status changed from ASSIGNED to POST

Added by ipanova@redhat.com almost 9 years ago

Revision 745f1443 | View on GitHub

Adding temporary fix for task state discrepancies.

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

Added by ipanova@redhat.com almost 9 years ago

Revision 745f1443 | View on GitHub

Adding temporary fix for task state discrepancies.

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

Actions #14

Updated by ipanova@redhat.com almost 9 years ago

  • Status changed from POST to MODIFIED
Actions #15

Updated by dkliban@redhat.com over 8 years ago

  • Status changed from MODIFIED to 5
Actions #17

Updated by rbarlow about 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #20

Updated by bmbouter about 6 years ago

  • Sprint set to April 2015
Actions #21

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (15)
Actions #22

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF