Handle None task_ids
@@ -166,6 +166,7 @@ class HarvesterTask(SourceTask):
)
if not created:
+ if log.task_id:
kwargs['task_id'] = str(log.task_id) # Preserve the old task id
log.share_version = settings.VERSION # Update version, it may have changed
