mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-29 00:46:32 +02:00
[bin] compute: No warning if we are computing as EXTERN and the node is SUBMITTED
This commit is contained in:
parent
c8978cd792
commit
69e9495d63
1 changed files with 6 additions and 2 deletions
|
@ -40,7 +40,11 @@ graph.update()
|
||||||
if args.node:
|
if args.node:
|
||||||
# Execute the node
|
# Execute the node
|
||||||
node = graph.findNode(args.node)
|
node = graph.findNode(args.node)
|
||||||
submittedStatuses = [Status.SUBMITTED, Status.RUNNING]
|
submittedStatuses = [Status.RUNNING]
|
||||||
|
if not args.extern:
|
||||||
|
# If running as "extern", the task is supposed to have the status SUBMITTED.
|
||||||
|
# If not running as "extern", the SUBMITTED status should generate a warning.
|
||||||
|
submittedStatuses.append(Status.SUBMITTED)
|
||||||
if not args.forceStatus and not args.forceCompute:
|
if not args.forceStatus and not args.forceCompute:
|
||||||
if args.iteration != -1:
|
if args.iteration != -1:
|
||||||
chunks = [node.chunks[args.iteration]]
|
chunks = [node.chunks[args.iteration]]
|
||||||
|
@ -48,7 +52,7 @@ if args.node:
|
||||||
chunks = node.chunks
|
chunks = node.chunks
|
||||||
for chunk in chunks:
|
for chunk in chunks:
|
||||||
if chunk.status.status in submittedStatuses:
|
if chunk.status.status in submittedStatuses:
|
||||||
print('Error: Node is already submitted with status "{}". See file: "{}"'.format(chunk.status.status.name, chunk.statusFile))
|
print('Warning: Node is already submitted with status "{}". See file: "{}"'.format(chunk.status.status.name, chunk.statusFile))
|
||||||
# sys.exit(-1)
|
# sys.exit(-1)
|
||||||
if args.iteration != -1:
|
if args.iteration != -1:
|
||||||
chunk = node.chunks[args.iteration]
|
chunk = node.chunks[args.iteration]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue