[bin] replace the executeGraph method by a task manager

This commit is contained in:
Julien-Haudegond 2020-08-27 11:49:24 +02:00
parent 6eeea3bb44
commit 201ab0b5fb
2 changed files with 7 additions and 2 deletions

View file

@ -6,6 +6,7 @@ import meshroom
meshroom.setupEnvironment()
import meshroom.core.graph
import meshroom.core.taskManager
from meshroom.core.node import Status
@ -61,5 +62,7 @@ else:
toNodes = None
if args.toNode:
toNodes = graph.findNodes([args.toNode])
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
taskManager = meshroom.core.taskManager.TaskManager()
taskManager.compute(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)

View file

@ -8,6 +8,7 @@ import meshroom
meshroom.setupEnvironment()
import meshroom.core.graph
import meshroom.core.taskManager
from meshroom import multiview
parser = argparse.ArgumentParser(description='Launch the full photogrammetry or HDRI pipeline.')
@ -200,4 +201,5 @@ if args.submit:
meshroom.core.graph.submit(args.save, args.submitter, toNode=toNodes)
elif args.compute:
# start computation
meshroom.core.graph.executeGraph(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)
taskManager = meshroom.core.taskManager.TaskManager()
taskManager.compute(graph, toNodes=toNodes, forceCompute=args.forceCompute, forceStatus=args.forceStatus)