-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/history-api
- Loading branch information
Showing
46 changed files
with
1,372 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ serverless-wsgi==3.0.4 | |
# for sequencerunstatechange package | ||
six==1.16.0 | ||
regex==2024.7.24 | ||
ulid-py==1.1.0 |
22 changes: 22 additions & 0 deletions
22
lib/workload/stateless/stacks/workflow-manager/workflow_manager/fields.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 19 additions & 3 deletions
22
...rkload/stateless/stacks/workflow-manager/workflow_manager/management/commands/clean_db.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
from django.core.management import BaseCommand | ||
from django.db.models import QuerySet | ||
|
||
from workflow_manager.models import WorkflowRun, Workflow, Payload | ||
from workflow_manager.models import ( | ||
WorkflowRun, | ||
Workflow, | ||
Payload, | ||
State, | ||
Library, | ||
LibraryAssociation, | ||
Analysis, | ||
AnalysisRun, | ||
AnalysisContext | ||
) | ||
|
||
|
||
# https://docs.djangoproject.com/en/5.0/howto/custom-management-commands/ | ||
class Command(BaseCommand): | ||
help = "Delete all DB data" | ||
|
||
def handle(self, *args, **options): | ||
Workflow.objects.all().delete() | ||
WorkflowRun.objects.all().delete() | ||
State.objects.all().delete() | ||
Payload.objects.all().delete() | ||
Workflow.objects.all().delete() | ||
Library.objects.all().delete() | ||
LibraryAssociation.objects.all().delete() | ||
AnalysisContext.objects.all().delete() | ||
AnalysisRun.objects.all().delete() | ||
Analysis.objects.all().delete() | ||
|
||
print("Done") |
Oops, something went wrong.