Skip to content

Commit

Permalink
fixup! fixup! USDLayerWriter : Pre-process scene for improved perform…
Browse files Browse the repository at this point in the history
…ance

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.
  • Loading branch information
johnhaddon committed Feb 4, 2025
1 parent f99b188 commit 63bb9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/GafferUSDTest/USDLayerWriterTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 63bb9d0

Please sign in to comment.