diff --git a/bin/meshroom_compute b/bin/meshroom_compute index 13231f03..e71853a6 100755 --- a/bin/meshroom_compute +++ b/bin/meshroom_compute @@ -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) diff --git a/bin/meshroom_photogrammetry b/bin/meshroom_photogrammetry index 24477592..fe911291 100755 --- a/bin/meshroom_photogrammetry +++ b/bin/meshroom_photogrammetry @@ -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)