Fix job schedule submission regression

- Finer-grained autogen task id cache clear check did not work properly
with unmatched tasks when added as part of a batch in a job schedule
- Resolves #329
This commit is contained in:
Fred Park 2019-11-28 00:18:46 +00:00
Родитель d8b13d3f2a
Коммит f93bbd14bc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3C4D545F457737EB
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -4219,6 +4219,7 @@ def _generate_next_generic_task_id(
tasknum = sorted( tasknum = sorted(
[int(x.id.split(delimiter)[-1]) for x in tasklist])[-1] + 1 [int(x.id.split(delimiter)[-1]) for x in tasklist])[-1] + 1
except (batchmodels.BatchErrorException, IndexError, TypeError): except (batchmodels.BatchErrorException, IndexError, TypeError):
tasklist = []
tasknum = 0 tasknum = 0
if reserved is not None: if reserved is not None:
tasknum_reserved = int(reserved.split(delimiter)[-1]) tasknum_reserved = int(reserved.split(delimiter)[-1])