Project

General

Profile

Actions

Bug #9289

closed

Native Scheduler does not properly handle errors with tasks.json

Added by Evgeny Novikov about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Scheduling
Target version:
Start date:
09/28/2018
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

After some bugs with tasks.json Native Scheduler decides to restart its operation rather than to fail a corresponding job:

root ERROR> An error occurred:
Traceback (most recent call last):
  File "/home/novikov/work/klever/scheduler/bin/../schedulers/__init__.py", line 268, in launch
    self.__add_missing_restrictions(collection)
  File "/home/novikov/work/klever/scheduler/bin/../schedulers/__init__.py", line 514, in __add_missing_restrictions
    raise SchedulerException("Resource limitations are missing: upload filled tasks.json file and properly " 
schedulers.SchedulerException: Resource limitations are missing: upload filled tasks.json file and properly set job resource limitiations
root  INFO> Reinitialize scheduler and try to proceed execution in 30 seconds...

BTW, solving #9151 will not help always, as it will just guarantee that tasks.json is a valid JSON file, while it still can have incorrect semantics.


Related issues 1 (0 open1 closed)

Related to Klever - Bug #9151: Bridge starts job even if job.json or tasks.json is invalidClosedVladimir Gratinskiy07/23/2018

Actions
Actions #1

Updated by Evgeny Novikov about 6 years ago

  • Related to Bug #9151: Bridge starts job even if job.json or tasks.json is invalid added
Actions #2

Updated by Ilja Zakharov about 6 years ago

  • Status changed from New to Resolved

Fixed in klever-2.0

Actions #3

Updated by Evgeny Novikov about 6 years ago

  • Status changed from Resolved to Closed

Branch klever-2.0 passed all tests and I merged it to master in 72be796e3 marked as v2.0rc1.

Actions

Also available in: Atom PDF