Skip to content
Snippets Groups Projects
Commit 1ab04fc0 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[experiments] Reject scheduling of experiments with unset queue/environment

parent b2967f18
No related branches found
No related tags found
1 merge request!194Scheduler
......@@ -985,6 +985,21 @@ class Block(models.Model):
if self.status != Block.NOT_CACHED: return
# checks queue and environment
if self.queue is None:
raise RuntimeError("Block `%s' does not have a queue assigned " \
"- this normally indicates the originally selected " \
"queue was deleted since the experiment was first " \
"configured. Re-configure this experiment and select a new " \
"default or block-specific queue" % self.name)
if self.environment is None:
raise RuntimeError("Block `%s' does not have an environment " \
"assigned - this normally indicates the originally selected " \
"environment was deleted since the experiment was first " \
"configured. Re-configure this experiment and select a new " \
"default or block-specific environment" % self.name)
from ..backend.models import Job
# search for other jobs with similar outputs and has no children yet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment