DistributedTaskScheduling / JobAdder

Source code of the JobAdder project
GNU General Public License v3.0
2 stars 1 forks source link

Fixed missing special resources crashing the server #189

Closed JohannesGaessler closed 4 years ago

JohannesGaessler commented 4 years ago

Fixes https://github.com/DistributedTaskScheduling/JobAdder/issues/184.

AddCommand.execute now checks if a job can be executed at all. If the requested special resources don't exist at all or in insufficient quantity the job is not added.

JohannesGaessler commented 4 years ago

Somewhere in the dispatcher a dictionary entry was retrieved for special resources. If the special resources didn't exist this caused a KeyError.

ammen99 commented 4 years ago

Somewhere in the dispatcher a dictionary entry was retrieved for special resources. If the special resources didn't exist this caused a KeyError.

Dispatcher???

JohannesGaessler commented 4 years ago

Sorry, I meant Scheduler.