Skip to content

Commit

Permalink
Merge branch 'feature/add-queue-in-send-task' of https://github.com/w…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Jan 15, 2024
2 parents 32dcb9b + eb33281 commit 72eea24
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 @@ -122,6 +122,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 72eea24

Please sign in to comment.