Skip to content
Snippets Groups Projects
Commit d930a8dd authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added filter to 'vos_job list' command.

parent 535a4ed8
No related branches found
No related tags found
No related merge requests found
Pipeline #2304 passed
...@@ -414,10 +414,16 @@ class DbConnector(object): ...@@ -414,10 +414,16 @@ class DbConnector(object):
start_time, start_time,
owner_id owner_id
FROM job FROM job
WHERE phase WHERE phase NOT IN ('ABORTED',
NOT IN ('ABORTED',
'COMPLETED', 'COMPLETED',
'ERROR') 'ERROR')
AND
job_type IN ('pullFromVoSpace',
'pullToVoSpace',
'pushToVoSpace',
'vos_data',
'vos_group',
'vos_import')
ORDER BY creation_time DESC; ORDER BY creation_time DESC;
""") """)
result = cursor.fetchall() result = cursor.fetchall()
...@@ -451,6 +457,13 @@ class DbConnector(object): ...@@ -451,6 +457,13 @@ class DbConnector(object):
owner_id owner_id
FROM job FROM job
WHERE phase = %s WHERE phase = %s
AND
job_type IN ('pullFromVoSpace',
'pullToVoSpace',
'pushToVoSpace',
'vos_data',
'vos_group',
'vos_import')
ORDER BY creation_time DESC; ORDER BY creation_time DESC;
""", """,
(phase,)) (phase,))
...@@ -464,6 +477,13 @@ class DbConnector(object): ...@@ -464,6 +477,13 @@ class DbConnector(object):
owner_id owner_id
FROM job FROM job
WHERE phase = %s WHERE phase = %s
AND
job_type IN ('pullFromVoSpace',
'pullToVoSpace',
'pushToVoSpace',
'vos_data',
'vos_group',
'vos_import')
ORDER BY creation_time DESC; ORDER BY creation_time DESC;
""", """,
(phase,)) (phase,))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment