How to disable cleanup feature

And another small question: is it possible to turn off deleting files from rendered folder? I had several tasks in whitch publish task fails because previous attemp of publishing this task was unsuccsesful on later stage and files was alredy deleted but ayon task is trying to do it all over again and againd but files is not here anymore
i have both cleanups dissabled
image

1 Like

As far as I know, There something that triggers the clean up plugins. but, I’m not sure yet about the cause (I didn’t dig much in this area and also I’m not sure how it behaves with different applications/addons e.g. Maya and Nuke).

But, just to confirm your post.
Here’s a snippet of my settings (which are exactly as yours):

and Here’s log from AYON publish deadline job:

AYON publish deadline job's log
2024-09-03 18:46:44:  0: STDOUT: DEBUG:pyblish.CleanUp:Skipping cleanup. Staging dir not set on instance: renderCfxMantra_ropTest_beauty.
2024-09-03 18:46:44:  0: STDOUT: DEBUG:pyblish.CleanUp:Skipping cleanup. Staging dir not set on instance: renderCfxMantra_ropTest_N.
2024-09-03 18:46:44:  0: STDOUT: DEBUG:pyblish.CleanUp:Skipping cleanup. Staging dir not set on instance: renderCfxMantra_ropTest_P.
2024-09-03 18:46:44:  0: STDOUT: INFO:pyblish.ExplicitCleanUp:Removed files:
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1001.N.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1001.P.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1001.beauty.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1002.N.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1002.P.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1002.beauty.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1003.N.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1003.P.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest.1003.beauty.exr
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest_h264focal_length_burnin.mp4
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest\mantra_ropTest_metadata.json
2024-09-03 18:46:44:  0: STDOUT: INFO:pyblish.ExplicitCleanUp:Removed directories:
2024-09-03 18:46:44:  0: STDOUT: C:\Users\MUSTAF~1\AppData\Local\Temp\pyblish_tmp_ldgcjj78
2024-09-03 18:46:44:  0: STDOUT: DEBUG:pyblish.ExplicitCleanUp:Skipped directories because they contain files:
2024-09-03 18:46:44:  0: STDOUT: \\storage\work\ayon_projects\Robo\Assets\Character\roboangry\work\cfx\pyblish\renders\mantra_ropTest

Also, for reference, here are the clean up plugins.

  • cleanup_explicit.py (I think this one tried to delete some folders)
  • cleanup.py (this one deleted all the render files, generated review file and the job json file)
  • cleanup_farm.py (this one wasn’t triggered in publish job)

Looking at those deadline logs. They were deleted by this plugin.

It may be this plugin that registers them for deletion?

I think might need some debugging session.
We probably shouldn’t start on this now because this issue is a low priority compared to current client issues.

So, I’d recommend creating an issue on Issues · ynput/ayon-core · GitHub for now.


Also, there many places that uses "cleanupFullPaths" other than these three plugins.


and far less that uses "cleanupEmptyDirs"

agree since there was only two time when i was setuping deadline. After that everything was fine