Project

General

Profile

Bug #9289

Native Scheduler does not properly handle errors with tasks.json

Added by Evgeny Novikov 4 months ago. Updated 3 months 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

Related to Klever - Bug #9151: Bridge starts job even if job.json or tasks.json is invalidClosed2018-07-23

History

#1 Updated by Evgeny Novikov 4 months ago

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

#2 Updated by Ilja Zakharov 4 months ago

  • Status changed from New to Resolved

Fixed in klever-2.0

#3 Updated by Evgeny Novikov 3 months 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.

Also available in: Atom PDF