Commit bbb398cc authored by Alp Deniz Ogut's avatar Alp Deniz Ogut
Browse files

Fix time import

parent 428b7048
No related merge requests found
Pipeline #15216 passed with stages
in 1 minute and 58 seconds
Showing with 3 additions and 4 deletions
+3 -4
import threading
import time
import json
from concurrent.futures import Future, ThreadPoolExecutor
from threading import Condition, Lock
......@@ -25,7 +24,7 @@ import pyheif
import piexif
import os
import dotenv
from time import sleep
from time import sleep, time
from urllib.parse import parse_qs
dotenv.load_dotenv()
......@@ -75,7 +74,7 @@ def thread_safe(func):
def run_delayed(func, delay):
time.sleep(delay)
sleep(delay)
logger.info(f"Running delayed function {func}")
return func()
......@@ -260,7 +259,7 @@ class DropboxOauthPlugin(PluginBase):
except Exception as e:
self.set_run_status(RUN_FAILED)
logger.exception(f"Error while collecting data: {e}")
time.sleep(1)
sleep(1)
finally:
self.wait_for_futures()
self.join()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment