Mbonea commited on
Commit
5ab1531
1 Parent(s): b7a6d06

json serializer

Browse files
Files changed (2) hide show
  1. App/Worker.py +1 -0
  2. App/celery_config.py +1 -1
App/Worker.py CHANGED
@@ -135,6 +135,7 @@ def celery_task(video_task: EditorRequest):
135
  chain(
136
  copy_remotion_app.si(remotion_app_dir, temp_dir),
137
  install_dependencies.si(temp_dir),
 
138
  create_json_file.si(video_task.assets, assets_dir),
139
  download_assets.si(video_task.links, temp_dir) if video_task.links else None,
140
  render_video.si(temp_dir, output_dir),
 
135
  chain(
136
  copy_remotion_app.si(remotion_app_dir, temp_dir),
137
  install_dependencies.si(temp_dir),
138
+ create_constants_json_file(video_task.constants, assets_dir),
139
  create_json_file.si(video_task.assets, assets_dir),
140
  download_assets.si(video_task.links, temp_dir) if video_task.links else None,
141
  render_video.si(temp_dir, output_dir),
App/celery_config.py CHANGED
@@ -2,7 +2,7 @@ from os import environ
2
  import ssl
3
 
4
  task_serializer = "pickle"
5
- result_serializer = "pickle"
6
  event_serializer = "json"
7
  accept_content = ["application/json", "application/x-python-serialize"]
8
  result_accept_content = ["application/json", "application/x-python-serialize"]
 
2
  import ssl
3
 
4
  task_serializer = "pickle"
5
+ result_serializer = "json"
6
  event_serializer = "json"
7
  accept_content = ["application/json", "application/x-python-serialize"]
8
  result_accept_content = ["application/json", "application/x-python-serialize"]