Fix retry for experiment group
@@ -11,7 +11,7 @@ from projects.models import ExperimentGroup
logger = logging.getLogger('polyaxon.tasks.projects')
-@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
+@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True, max_retries=None)
def start_group_experiments(self, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
@@ -28,4 +28,4 @@ def start_group_experiments(self, experiment_group_id):
if pending_experiments:
# Schedule another task
- self.retry(countdown=Intervals.EXPERIMENTS_SCHEDULER, max_retries=None)
+ self.retry(countdown=Intervals.EXPERIMENTS_SCHEDULER)
