Skip to content

Commit 70660b3

Browse files
committed
4.7.7
- there was an issue when creating a job, the order of the tasks creation caused that child tasks run before their parents
1 parent ebf2c0b commit 70660b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

process/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__title__ = 'django-process'
22
__description__ = 'An app for create process workflows and schedule tasks on django'
33
__url__ = 'https://github.com/Jesrat/django-process'
4-
__version__ = '4.7.6'
4+
__version__ = '4.7.7'
55
__author__ = 'Josue Gomez'
66
__author_email__ = 'jgomez@jesrat.com'
77
__license__ = 'Apache 2.0'

process/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def create(cls, process, *args, **kwargs):
277277
job.save()
278278
ret_tasks = []
279279
if job.status != 'finished':
280-
tasks = Task.objects.filter(is_active=True, process=process)
280+
tasks = Task.objects.filter(is_active=True, process=process).order_by('level')
281281
ret_tasks = [JobTask.create(job, t) for t in tasks]
282282
return job, ret_tasks
283283

0 commit comments

Comments
 (0)