Sequential Execution issues for python code
Hi,
As of late, when working on the plugin development, I have discovered some irregularities in how code is handled and scheduled on the platform. The same code behaves differently on consecutive executions. Is there a potential fix?
Task I'm trying to achieve :
Ask the user if they want to clear an existing folder structure(T/F) and based on that delete the contents of the managed folder and if not, only create the folders based on the user input via boolean arguments. Problem is there are times, when after the folder is cleared, it shows that the folder still exists (via the logger) but when i go check the managed folder, it remains empty.
This behaviour also affects how data is handeled in dicts I have compared on executions via my local conda enviroment and on DSS.
Best Answer
-
Resolved
Answers
-
Well, I had to modify my code to cover all scenarios, but there were times when the same code behaved differently on my local conda instance when compared to the dss instance.