From 63bb9d0c2f4da57f15449f1365899fd0b3ccffe2 Mon Sep 17 00:00:00 2001 From: John Haddon Date: Tue, 4 Feb 2025 12:23:45 +0000 Subject: [PATCH] fixup! fixup! USDLayerWriter : Pre-process scene for improved performance We can't let the job linger in the default job pool, as that causes failures in later tests that assert there are no zombie jobs. --- python/GafferUSDTest/USDLayerWriterTest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/GafferUSDTest/USDLayerWriterTest.py b/python/GafferUSDTest/USDLayerWriterTest.py index aa87915dca..a529464074 100644 --- a/python/GafferUSDTest/USDLayerWriterTest.py +++ b/python/GafferUSDTest/USDLayerWriterTest.py @@ -411,7 +411,7 @@ def testDispatch( self ) : script["writer"]["layer"].setInput( script["reader"]["out"] ) script["writer"]["fileName"].setValue( self.temporaryDirectory() / "test.usda" ) - script["dispatcher"] = GafferDispatch.LocalDispatcher() + script["dispatcher"] = GafferDispatch.LocalDispatcher( jobPool = GafferDispatch.LocalDispatcher.JobPool() ) script["dispatcher"]["tasks"][0].setInput( script["writer"]["task"] ) script["dispatcher"]["jobsDirectory"].setValue( self.temporaryDirectory() / "localJobs" ) script["dispatcher"]["task"].execute()