si
Browse files- App/Worker.py +5 -5
App/Worker.py
CHANGED
@@ -72,11 +72,11 @@ def celery_task(links, script=""):
|
|
72 |
output_dir = f"/tmp/{project_id}/{project_id}.mp4"
|
73 |
|
74 |
chain(
|
75 |
-
copy_remotion_app.
|
76 |
-
install_dependencies.
|
77 |
-
download_assets.
|
78 |
-
render_video.
|
79 |
-
cleanup_temp_directory.
|
80 |
).apply_async(
|
81 |
link_error=handle_error
|
82 |
) # Link the tasks and handle errors
|
|
|
72 |
output_dir = f"/tmp/{project_id}/{project_id}.mp4"
|
73 |
|
74 |
chain(
|
75 |
+
copy_remotion_app.si(remotion_app_dir, temp_dir),
|
76 |
+
install_dependencies.si(temp_dir),
|
77 |
+
download_assets.si(links, temp_dir) if links else None,
|
78 |
+
render_video.si(temp_dir, output_dir),
|
79 |
+
cleanup_temp_directory.si(temp_dir, output_dir),
|
80 |
).apply_async(
|
81 |
link_error=handle_error
|
82 |
) # Link the tasks and handle errors
|