File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 Release History
44---------------
55
6+ 2.0.1 (2021-04-06)
7+ ++++++++++++++++++
8+
9+ **Bugfixes **
10+
11+ - Exit with 0 in ``ia tasks --cmd ... `` if a task is already queued or running.
12+
6132.0.0 (2021-04-05)
714++++++++++++++++++
815
Original file line number Diff line number Diff line change 3737from __future__ import absolute_import
3838
3939__title__ = 'internetarchive'
40- __version__ = '2.0.0 '
40+ __version__ = '2.0.1 '
4141__author__ = 'Jacob M. Johnson'
4242__license__ = 'AGPL 3'
4343__copyright__ = 'Copyright (C) 2012-2019 Internet Archive'
Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ def main(argv, session):
9898 if j .get ('success' ):
9999 print ('success: {}' .format (j .get ('value' , dict ()).get ('log' )))
100100 sys .exit (0 )
101+ elif 'already queued/running' in j .get ('error' , '' ):
102+ print ('success: {} task already queued/running' .format (args ['--cmd' ]))
103+ sys .exit (0 )
101104 else :
102105 print ('error: {}' .format (j .get ('error' )))
103106 sys .exit (1 )
You can’t perform that action at this time.
0 commit comments