Mbonea commited on
Commit
d680286
1 Parent(s): fdee548

removed async task

Browse files
Files changed (1) hide show
  1. App/Worker.py +3 -3
App/Worker.py CHANGED
@@ -100,13 +100,13 @@ def render_video(directory: str, output_directory: str):
100
 
101
 
102
  @celery.task(name="send")
103
- async def cleanup_temp_directory(
104
  temp_dir: str, output_dir: str, chat_id: int = -1002069945904
105
  ):
106
  try:
107
  print("sending...")
108
- # bot.send_video(chat_id=chat_id,caption="Your Video Caption",file_name=output_dir)
109
- await bot.send_file(chat_id, file=output_dir, caption="Your video caption")
110
  except Exception as e:
111
  print(e)
112
  finally:
 
100
 
101
 
102
  @celery.task(name="send")
103
+ def cleanup_temp_directory(
104
  temp_dir: str, output_dir: str, chat_id: int = -1002069945904
105
  ):
106
  try:
107
  print("sending...")
108
+ bot.send_video(chat_id=chat_id,caption="Your Video Caption",file_name=output_dir)
109
+ # await bot.send_file(chat_id, file=output_dir, caption="Your video caption")
110
  except Exception as e:
111
  print(e)
112
  finally: