Skip to content

Commit bb85b32

Browse files
authored
Increase COMPONENTS_MAXIMUM_JOB_DURATION (#4177)
1 parent 358910e commit bb85b32

3 files changed

Lines changed: 97 additions & 1 deletion

File tree

app/config/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def sentry_before_send(event, hint):
10271027
)
10281028
COMPONENTS_MAXIMUM_IMAGE_SIZE = 10 * GIGABYTE
10291029
COMPONENTS_MINIMUM_JOB_DURATION = 5 * 60 # 5 minutes
1030-
COMPONENTS_MAXIMUM_JOB_DURATION = 12 * 60 * 60 # 12 hours
1030+
COMPONENTS_MAXIMUM_JOB_DURATION = 24 * 60 * 60 # 24 hours
10311031
COMPONENTS_AMAZON_ECR_REGION = os.environ.get("COMPONENTS_AMAZON_ECR_REGION")
10321032
COMPONENTS_AMAZON_SAGEMAKER_EXECUTION_ROLE_ARN = os.environ.get(
10331033
"COMPONENTS_AMAZON_SAGEMAKER_EXECUTION_ROLE_ARN", ""
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Generated by Django 4.2.23 on 2025-07-21 13:49
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
("algorithms", "0078_alter_algorithm_job_requires_gpu_type_and_more"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="algorithm",
16+
name="time_limit",
17+
field=models.PositiveIntegerField(
18+
default=3600,
19+
help_text="Time limit for inference jobs in seconds",
20+
validators=[
21+
django.core.validators.MinValueValidator(limit_value=300),
22+
django.core.validators.MaxValueValidator(
23+
limit_value=86400
24+
),
25+
],
26+
),
27+
),
28+
migrations.AlterField(
29+
model_name="job",
30+
name="time_limit",
31+
field=models.PositiveIntegerField(
32+
help_text="Time limit for the job in seconds",
33+
validators=[
34+
django.core.validators.MinValueValidator(limit_value=300),
35+
django.core.validators.MaxValueValidator(
36+
limit_value=86400
37+
),
38+
],
39+
),
40+
),
41+
]
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Generated by Django 4.2.23 on 2025-07-21 13:49
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
("evaluation", "0090_alter_evaluation_requires_gpu_type_and_more"),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name="evaluation",
16+
name="time_limit",
17+
field=models.PositiveIntegerField(
18+
help_text="Time limit for the job in seconds",
19+
validators=[
20+
django.core.validators.MinValueValidator(limit_value=300),
21+
django.core.validators.MaxValueValidator(
22+
limit_value=86400
23+
),
24+
],
25+
),
26+
),
27+
migrations.AlterField(
28+
model_name="phase",
29+
name="algorithm_time_limit",
30+
field=models.PositiveIntegerField(
31+
default=1200,
32+
help_text="Time limit for inference jobs in seconds",
33+
validators=[
34+
django.core.validators.MinValueValidator(limit_value=300),
35+
django.core.validators.MaxValueValidator(
36+
limit_value=86400
37+
),
38+
],
39+
),
40+
),
41+
migrations.AlterField(
42+
model_name="phase",
43+
name="evaluation_time_limit",
44+
field=models.PositiveIntegerField(
45+
default=3600,
46+
help_text="Time limit for evaluation jobs in seconds",
47+
validators=[
48+
django.core.validators.MinValueValidator(limit_value=300),
49+
django.core.validators.MaxValueValidator(
50+
limit_value=86400
51+
),
52+
],
53+
),
54+
),
55+
]

0 commit comments

Comments
 (0)