@@ -271,7 +271,7 @@ def create(cls, process, *args, **kwargs):
271271 """
272272 this method creates a job-process instance and all its tasks, however if the job its created as finished it will
273273 not create any task, example the time has come for start a job but a previous instance is still running and the
274- process its configured for not overlap the new instance will be created as finished
274+ process it's configured for not overlap the new instance will be created as finished
275275 """
276276 job = cls (process = process , * args , ** kwargs )
277277 job .save ()
@@ -297,7 +297,7 @@ def cancel(self):
297297# noinspection SpellCheckingInspection
298298class JobTask (models .Model ):
299299 """
300- A JobTask its an instance of a Task that has been executed ant its related to the Job Instance
300+ A JobTask is an instance of a Task that has been executed ant it is related to the Job Instance
301301 """
302302 initialized = 'initialized'
303303 awaiting = 'awaiting'
@@ -350,6 +350,7 @@ class JobTask(models.Model):
350350 related_name = 'logs'
351351 )
352352 status = models .CharField (_ ("status" ), db_index = True , max_length = 20 , choices = status_choices , default = awaiting )
353+ pid = models .PositiveIntegerField (_ ("pid" ), default = 0 )
353354 dt_created = models .DateTimeField (_ ("created date" ), blank = True , null = True , auto_now_add = True )
354355 dt_start = models .DateTimeField (_ ("start date" ), blank = True , null = True )
355356 dt_end = models .DateTimeField (_ ("end date" ), blank = True , null = True )
0 commit comments