fuck you
Browse files- App/Worker.py +2 -5
App/Worker.py
CHANGED
@@ -20,11 +20,7 @@ celery.conf.update(
|
|
20 |
|
21 |
@worker_process_init.connect
|
22 |
def worker_process_init_handler(**kwargs):
|
23 |
-
|
24 |
-
print(name)
|
25 |
-
if name == "send":
|
26 |
-
print("its time")
|
27 |
-
bot.start()
|
28 |
|
29 |
|
30 |
@celery.task(name="CreateFile")
|
@@ -94,6 +90,7 @@ def download_assets(links: List[LinkInfo], temp_dir: str):
|
|
94 |
def render_video(directory: str, output_directory: str):
|
95 |
os.chdir(directory)
|
96 |
os.system(f"npm run build --output {output_directory}")
|
|
|
97 |
print("complete")
|
98 |
|
99 |
|
|
|
20 |
|
21 |
@worker_process_init.connect
|
22 |
def worker_process_init_handler(**kwargs):
|
23 |
+
bot.start()
|
|
|
|
|
|
|
|
|
24 |
|
25 |
|
26 |
@celery.task(name="CreateFile")
|
|
|
90 |
def render_video(directory: str, output_directory: str):
|
91 |
os.chdir(directory)
|
92 |
os.system(f"npm run build --output {output_directory}")
|
93 |
+
bot.send_file(-1002069945904, file=output_directory, caption="Your video caption")
|
94 |
print("complete")
|
95 |
|
96 |
|