Skip to content
Snippets Groups Projects
Commit 6f8e7d7b authored by Karim Ahmed's avatar Karim Ahmed
Browse files

asyncio sleep

parent 96eaa2a8
No related branches found
No related tags found
1 merge request!185Feat/git push flag
...@@ -134,9 +134,7 @@ async def push_figures(repo_master, addf): ...@@ -134,9 +134,7 @@ async def push_figures(repo_master, addf):
adding = False adding = False
except Exception as e: except Exception as e:
logging.error(str(e)) logging.error(str(e))
sleep(1) await asyncio.sleep(2)
repo.index.commit("Add {} new figures".format(len(addf))) repo.index.commit("Add {} new figures".format(len(addf)))
#TODO: create an async function for pushing new figures #TODO: create an async function for pushing new figures
# to avoid blocking the report service. # to avoid blocking the report service.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment