django-to-galaxy 0.6.9.4__py3-none-any.whl → 0.6.9.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of django-to-galaxy might be problematic. Click here for more details.
- django_to_galaxy/models/history.py +1 -1
- django_to_galaxy/models/invocation.py +4 -10
- django_to_galaxy/version.py +1 -1
- {django_to_galaxy-0.6.9.4.dist-info → django_to_galaxy-0.6.9.5.dist-info}/METADATA +1 -1
- {django_to_galaxy-0.6.9.4.dist-info → django_to_galaxy-0.6.9.5.dist-info}/RECORD +7 -7
- {django_to_galaxy-0.6.9.4.dist-info → django_to_galaxy-0.6.9.5.dist-info}/LICENSE +0 -0
- {django_to_galaxy-0.6.9.4.dist-info → django_to_galaxy-0.6.9.5.dist-info}/WHEEL +0 -0
|
@@ -46,7 +46,7 @@ class History(GalaxyElement):
|
|
|
46
46
|
|
|
47
47
|
def delete(self, **kwargs):
|
|
48
48
|
"""Overloaded method to also delete history on Galaxy side."""
|
|
49
|
-
self.galaxy_owner.obj_gi.histories.delete(id_=self.galaxy_id)
|
|
49
|
+
self.galaxy_owner.obj_gi.histories.delete(id_=self.galaxy_id, purge=True)
|
|
50
50
|
return super().delete(**kwargs)
|
|
51
51
|
|
|
52
52
|
def synchronize(self):
|
|
@@ -12,7 +12,6 @@ from django_to_galaxy.utils import enabled_cache
|
|
|
12
12
|
|
|
13
13
|
from django.core.exceptions import ObjectDoesNotExist
|
|
14
14
|
|
|
15
|
-
READY = "ready"
|
|
16
15
|
RUNNING = "running"
|
|
17
16
|
DONE = "done"
|
|
18
17
|
ERROR = "error"
|
|
@@ -75,19 +74,17 @@ class Invocation(models.Model):
|
|
|
75
74
|
"""Get galaxy object using bioblend."""
|
|
76
75
|
return self.workflow.galaxy_owner.obj_gi.invocations.get(self.galaxy_id)
|
|
77
76
|
|
|
78
|
-
def complet_jobs_summary(self, step
|
|
77
|
+
def complet_jobs_summary(self, step):
|
|
79
78
|
subinv = self.galaxy_invocation.gi.invocations.get(
|
|
80
79
|
step.wrapped["subworkflow_invocation_id"]
|
|
81
80
|
)
|
|
82
|
-
if subinv.state != READY or not subinv.steps:
|
|
83
|
-
subworkflow_invocation_state = subinv.state
|
|
84
81
|
sub_jobs_summary = subinv.step_jobs_summary()
|
|
85
82
|
for job in sub_jobs_summary:
|
|
86
83
|
self.step_jobs_summary.append(job)
|
|
87
84
|
for sub in subinv.steps:
|
|
88
85
|
if "subworkflow_invocation_id" in sub.wrapped:
|
|
89
86
|
if sub.wrapped["subworkflow_invocation_id"]:
|
|
90
|
-
self.complet_jobs_summary(sub
|
|
87
|
+
self.complet_jobs_summary(sub)
|
|
91
88
|
|
|
92
89
|
@property
|
|
93
90
|
def percentage_done(self) -> float:
|
|
@@ -96,13 +93,10 @@ class Invocation(models.Model):
|
|
|
96
93
|
return 100.0
|
|
97
94
|
self.step_jobs_summary = self.step_jobs_summary()
|
|
98
95
|
|
|
99
|
-
subworkflow_invocation_state = None
|
|
100
|
-
if self.galaxy_invocation.state != READY:
|
|
101
|
-
subworkflow_invocation_state = PAUSED
|
|
102
96
|
for step in self.galaxy_invocation.steps:
|
|
103
97
|
if "subworkflow_invocation_id" in step.wrapped:
|
|
104
98
|
if step.wrapped["subworkflow_invocation_id"]:
|
|
105
|
-
self.complet_jobs_summary(step
|
|
99
|
+
self.complet_jobs_summary(step)
|
|
106
100
|
|
|
107
101
|
count_states = defaultdict(int)
|
|
108
102
|
for step in self.step_jobs_summary:
|
|
@@ -112,7 +106,7 @@ class Invocation(models.Model):
|
|
|
112
106
|
percentage_done = count_states.get("ok", 0) / len(self.step_jobs_summary)
|
|
113
107
|
except ZeroDivisionError:
|
|
114
108
|
percentage_done = 0
|
|
115
|
-
if percentage_done == 1
|
|
109
|
+
if percentage_done == 1:
|
|
116
110
|
self.status = DONE
|
|
117
111
|
self.save()
|
|
118
112
|
if "error" in count_states.keys():
|
django_to_galaxy/version.py
CHANGED
|
@@ -45,8 +45,8 @@ django_to_galaxy/models/galaxy_element.py,sha256=55qUtUks-rC4A7O1DFjeUUm-AN0-qNm
|
|
|
45
45
|
django_to_galaxy/models/galaxy_instance.py,sha256=931iyrqJxK6YCbkaC6FPdqMRI_hhGQ-UokhW5-N7swk,723
|
|
46
46
|
django_to_galaxy/models/galaxy_output_file.py,sha256=oAq7HZBk3svG88NagFpkpiB5TQoncbpGFxCCTFoCzyo,1915
|
|
47
47
|
django_to_galaxy/models/galaxy_user.py,sha256=Cz6wmyD3PvltFi2yKEKr2z7YTsxlmnNV8xwA0Gltu_o,3264
|
|
48
|
-
django_to_galaxy/models/history.py,sha256
|
|
49
|
-
django_to_galaxy/models/invocation.py,sha256=
|
|
48
|
+
django_to_galaxy/models/history.py,sha256=-u0DDrwsNprYf-CMAut4q5eu2IzWXXLoKmuBpac7DKs,2647
|
|
49
|
+
django_to_galaxy/models/invocation.py,sha256=kexyKXY2I5QaPlBUs9cva1jzsN2EczIwcPKElgG6Sng,8319
|
|
50
50
|
django_to_galaxy/models/workflow.py,sha256=1Ok0TSSIM-LJbaY1Vm19YVg_WwDxznbLDcXI71S_IL8,1891
|
|
51
51
|
django_to_galaxy/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
52
|
django_to_galaxy/schemas/dataset.py,sha256=yjwLJGb487VJDXoXGg8fG_TW6TJPeyeGtd9vofU-7HI,396
|
|
@@ -54,8 +54,8 @@ django_to_galaxy/settings.py,sha256=Jn1gznlxhlu57D_cdbAhBQTTN9jq4GIb31czhQQUtJo,
|
|
|
54
54
|
django_to_galaxy/templates/admin/import_workflows.html,sha256=YB101H99EOR8td_DzfNshhJYpXpGD9aJNh8t4mKPgEQ,2389
|
|
55
55
|
django_to_galaxy/urls.py,sha256=ydMl_0qSyz8GSGkWpiSzU3khqj9mPyZacx532JybLHk,106
|
|
56
56
|
django_to_galaxy/utils.py,sha256=gjUzzqfpili66CY7vFyseqHOD9vqWg_2tzWAiTe3pNE,1625
|
|
57
|
-
django_to_galaxy/version.py,sha256
|
|
58
|
-
django_to_galaxy-0.6.9.
|
|
59
|
-
django_to_galaxy-0.6.9.
|
|
60
|
-
django_to_galaxy-0.6.9.
|
|
61
|
-
django_to_galaxy-0.6.9.
|
|
57
|
+
django_to_galaxy/version.py,sha256=-mvkaTH9aOCqLazgP3snDMg-hrtcjBkwNC0P-BhxtAY,114
|
|
58
|
+
django_to_galaxy-0.6.9.5.dist-info/LICENSE,sha256=Er3Bp2y6Wf31e0s1-Tdu_d6Gd89FtTizmGUJzGQkWvo,34498
|
|
59
|
+
django_to_galaxy-0.6.9.5.dist-info/METADATA,sha256=FOprcHMGUv9XcLucKaCuNjKRZkrG1audhpauvg3Dxwk,612
|
|
60
|
+
django_to_galaxy-0.6.9.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
61
|
+
django_to_galaxy-0.6.9.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|