I have modified your code just for testing
Added/changed the following parts
Added sleep
- Code: Select all
from time import mktime, strptime, localtime, sleep
Introduced a retry section with debug printing (line 1856 and forward)
- Code: Select all
now = dt.now()
now = now.replace(microsecond = 999999)
for i in range(5):
if i>0:
print "Retry nbr: ", i
try:
runTime = dt.strptime(data[0], "%H:%M:%S").time()
break
except ImportError:
print "ImportError, trying again..."
sleep(0.2)
This modified version works for me here and makes it at the second try.
Here is the plugin with the changes (can maybe be made more professional,,,)
Please note, I did also create a scheduled task that looks like this, maybe this is why you don't get the problem if it is not created. If I delete it, the problem is gone...
Best regards, Walter
