Skip to content

Commit

Permalink
remove debug. Add uses model
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 2, 2023
1 parent 92a4cc6 commit c675d0a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions src/api/src/backend/migrations/0021_remove_task__if.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.1.2 on 2023-10-02 17:18

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('backend', '0020_taskexecution_stderr_taskexecution_stdout'),
]

operations = [
migrations.RemoveField(
model_name='task',
name='_if',
),
]
1 change: 1 addition & 0 deletions src/api/src/backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ class Meta:
poll = models.BooleanField(null=True)
retry_policy = models.CharField(max_length=32, default=EnumRetryPolicy.ExponentialBackoff)
type = models.CharField(max_length=32, choices=TASK_TYPES)
uses = models.JSONField(null=True)
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4)

# Image build specific properties
Expand Down
1 change: 1 addition & 0 deletions src/api/src/backend/views/http/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ class BaseTask(BaseModel):
description: str = None
execution_profile: TaskExecutionProfile = TaskExecutionProfile()
input: Dict[str, TaskInputValue] = {}
_if: str = None
output: Dict[str, BaseOutputValue] = {}

class Config:
Expand Down
2 changes: 0 additions & 2 deletions src/api/src/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ python backend/setup.py

# Migrates the db schema
chmod a+x ./scripts/migrate.sh
echo "BEFORE MIGRATE"
./scripts/migrate.sh
echo "AFTER MIGRATE"

# Uses the envrionment variables to resolve superuser username,
# password, and email
Expand Down

0 comments on commit c675d0a

Please sign in to comment.