Skip to content

Commit

Permalink
add queue to vtex tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Jan 15, 2024
1 parent 9ef7f16 commit eb33281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def create(self, request, app_uuid, *args, **kwargs):
celery_app.send_task(
name="task_insert_vtex_products",
kwargs={"credentials": credentials, "catalog_uuid": str(catalog.uuid)},
queue="product_synchronization",
)

return Response(CatalogSerializer(catalog).data, status=status.HTTP_201_CREATED)
Expand Down
1 change: 1 addition & 0 deletions marketplace/webhooks/vtex/product_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def post(self, request, app_uuid):
celery_app.send_task(
name="task_update_vtex_products",
kwargs={"webhook_data": request.data, "app_uuid": app_uuid},
queue="product_synchronization",
)
return Response(status=status.HTTP_200_OK)

Expand Down

0 comments on commit eb33281

Please sign in to comment.