Mbonea commited on
Commit
c0d6ce0
·
1 Parent(s): 055fbf7
Files changed (1) hide show
  1. 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.s(remotion_app_dir, temp_dir),
76
- install_dependencies.s(temp_dir),
77
- download_assets.s(links, temp_dir) if links else None,
78
- render_video.s(temp_dir, output_dir),
79
- cleanup_temp_directory.s(temp_dir, output_dir),
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