-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from radexperts/dicom-worker
Use custom dicom worker instead of Celery
- Loading branch information
Showing
63 changed files
with
1,420 additions
and
1,089 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
28 changes: 28 additions & 0 deletions
28
adit/batch_query/migrations/0031_remove_batchquerysettings_slot_begin_time_and_more.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 4.2.7 on 2023-11-08 21:53 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("batch_query", "0030_alter_batchqueryresult_series_number"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="batchquerysettings", | ||
name="slot_begin_time", | ||
), | ||
migrations.RemoveField( | ||
model_name="batchquerysettings", | ||
name="slot_end_time", | ||
), | ||
migrations.RemoveField( | ||
model_name="batchquerysettings", | ||
name="transfer_timeout", | ||
), | ||
migrations.RemoveField( | ||
model_name="batchquerytask", | ||
name="celery_task_id", | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from adit.core.processors import ProcessDicomTask | ||
from adit.core.types import DicomLogEntry | ||
|
||
from .models import BatchQuerySettings, BatchQueryTask | ||
from .utils.query_utils import QueryExecutor | ||
|
||
|
||
class ProcessBatchQueryTask(ProcessDicomTask): | ||
app_name = "Batch Query" | ||
dicom_task_class = BatchQueryTask | ||
app_settings_class = BatchQuerySettings | ||
|
||
def process_dicom_task( | ||
self, dicom_task | ||
) -> tuple[BatchQueryTask.Status, str, list[DicomLogEntry]]: | ||
assert isinstance(dicom_task, BatchQueryTask) | ||
return QueryExecutor(dicom_task, self).start() |
This file was deleted.
Oops, something went wrong.
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
28 changes: 28 additions & 0 deletions
28
adit/batch_transfer/migrations/0028_remove_batchtransfersettings_slot_begin_time_and_more.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Generated by Django 4.2.7 on 2023-11-08 21:53 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("batch_transfer", "0027_alter_batchtransfertask_series_uids"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="batchtransfersettings", | ||
name="slot_begin_time", | ||
), | ||
migrations.RemoveField( | ||
model_name="batchtransfersettings", | ||
name="slot_end_time", | ||
), | ||
migrations.RemoveField( | ||
model_name="batchtransfersettings", | ||
name="transfer_timeout", | ||
), | ||
migrations.RemoveField( | ||
model_name="batchtransfertask", | ||
name="celery_task_id", | ||
), | ||
] |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from adit.core.processors import ProcessDicomTask | ||
from adit.core.types import DicomLogEntry | ||
from adit.core.utils.transfer_utils import TransferExecutor | ||
|
||
from .models import BatchTransferSettings, BatchTransferTask | ||
|
||
|
||
class ProcessBatchTransferTask(ProcessDicomTask): | ||
app_name = "Batch Transfer" | ||
dicom_task_class = BatchTransferTask | ||
app_settings_class = BatchTransferSettings | ||
|
||
def process_dicom_task( | ||
self, dicom_task | ||
) -> tuple[BatchTransferTask.Status, str, list[DicomLogEntry]]: | ||
assert isinstance(dicom_task, BatchTransferTask) | ||
return TransferExecutor(dicom_task, self).start() |
This file was deleted.
Oops, something went wrong.
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.