diff --git a/drmaatic/job/serializers.py b/drmaatic/job/serializers.py index 902aed5..99562b2 100644 --- a/drmaatic/job/serializers.py +++ b/drmaatic/job/serializers.py @@ -144,11 +144,9 @@ def create(self, validated_data): drm_params = { 'queue': task.queue.name, 'cpus_per_task': str(task.cpus), + 'mem_per_node': task.mem, } - if task.queue.name != 'local': - drm_params['mem_per_node']: task.mem - p_job = job.get_first_ancestor() # Take the first 8 characters of the job uuid to use as outfile names diff --git a/drmaatic/queue/models.py b/drmaatic/queue/models.py index e465f1a..c78e342 100644 --- a/drmaatic/queue/models.py +++ b/drmaatic/queue/models.py @@ -1,12 +1,12 @@ -from django.core.validators import MaxValueValidator, MinValueValidator +from django.core.validators import MinValueValidator from django.db import models class Queue(models.Model): name = models.CharField(max_length=50, null=False, blank=False, unique=True) - max_cpu = models.PositiveIntegerField(default=16, validators=[MinValueValidator(1), MaxValueValidator(64)], + max_cpu = models.PositiveIntegerField(default=16, validators=[MinValueValidator(1)], verbose_name="Maximum CPUs per node") - max_mem = models.PositiveIntegerField(default=1024, validators=[MinValueValidator(1), MaxValueValidator(96000)], + max_mem = models.PositiveIntegerField(default=1024, validators=[MinValueValidator(1)], verbose_name="Maximum memory (MB) per node") def __str__(self):