Skip to content
Snippets Groups Projects
Commit 1fc00155 authored by Valentin Rigal's avatar Valentin Rigal Committed by Bastien Abadie
Browse files

Start associated workflow when running a process

parent eb15470d
No related branches found
No related tags found
No related merge requests found
......@@ -214,6 +214,8 @@ class DataImport(IndexableModel):
def start(self, chunks=None, thumbnails=False, corpus_id=None):
self.workflow = self.build_workflow(chunks, thumbnails, corpus_id)
self.save()
# Start the associated workflow
self.workflow.start()
def retry(self):
if self.mode == DataImportMode.Repository and self.revision is not None and not self.revision.repo.enabled:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment