-
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.
* Add TaskProgress model and endpoints * Prevent duplicate data with each file type * Lint fix * Update progress during task execution * Fetch task progress and display linear progress bar * Type and lint fixes * Parse progress from executable xml output * Lint fix * First and last 10% to represent file download and upload * Fix optimize and analyze * Refactor and fix task progress fetching * Lint fix * Delete old taskprogress objects when new ones are created
- Loading branch information
Showing
15 changed files
with
389 additions
and
260 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Generated by Django 3.2.17 on 2023-02-10 15:15 | ||
|
||
import uuid | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django_extensions.db.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('core', '0022_private_datasets'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TaskProgress', | ||
fields=[ | ||
( | ||
'created', | ||
django_extensions.db.fields.CreationDateTimeField( | ||
auto_now_add=True, verbose_name='created' | ||
), | ||
), | ||
( | ||
'modified', | ||
django_extensions.db.fields.ModificationDateTimeField( | ||
auto_now=True, verbose_name='modified' | ||
), | ||
), | ||
( | ||
'task_id', | ||
models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False), | ||
), | ||
('name', models.CharField(max_length=255)), | ||
('error', models.CharField(max_length=255)), | ||
('percent_complete', models.IntegerField(default=0)), | ||
( | ||
'project', | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, to='core.project' | ||
), | ||
), | ||
], | ||
options={ | ||
'get_latest_by': 'modified', | ||
'abstract': False, | ||
}, | ||
), | ||
] |
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
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
Oops, something went wrong.