From 4862c2da6ef6ec946ea977cc68155a327ef83eff Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Wed, 12 Apr 2023 15:01:33 -0700 Subject: [PATCH 1/3] Fix missing interface element linking to staging tree --- .../contentcuration/frontend/shared/views/ToolBar.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contentcuration/contentcuration/frontend/shared/views/ToolBar.vue b/contentcuration/contentcuration/frontend/shared/views/ToolBar.vue index fe5cbc3b35..e1f20efce7 100644 --- a/contentcuration/contentcuration/frontend/shared/views/ToolBar.vue +++ b/contentcuration/contentcuration/frontend/shared/views/ToolBar.vue @@ -2,7 +2,9 @@ - + From 9a462db8de9d0c77a295009afd0659581b8379c5 Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Wed, 12 Apr 2023 15:02:00 -0700 Subject: [PATCH 2/3] Log full exception and stack trace for easier insight inside task workers --- contentcuration/contentcuration/viewsets/sync/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contentcuration/contentcuration/viewsets/sync/utils.py b/contentcuration/contentcuration/viewsets/sync/utils.py index 1d3718b5e2..d413d39c76 100644 --- a/contentcuration/contentcuration/viewsets/sync/utils.py +++ b/contentcuration/contentcuration/viewsets/sync/utils.py @@ -89,4 +89,4 @@ def log_sync_exception(e, user=None, change=None, changes=None): report_exception(e, user=user, contexts=contexts) # make sure we leave a record in the logs just in case. - logging.error(e) + logging.exception(e) From 4861fb40e7539fdacbc3e9557b8cf65841702333 Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Wed, 12 Apr 2023 15:02:32 -0700 Subject: [PATCH 3/3] By default, celery starts # workers based of CPU, this sets to 1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a74b4148c1..0bd1124efb 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "devserver:hot": "npm-run-all --parallel build:dev:hot runserver", "devserver-hot": "yarn run devserver:hot", "devshell": "cd contentcuration && python manage.py shell --settings=contentcuration.dev_settings", - "celery": "(cd contentcuration && DJANGO_SETTINGS_MODULE=contentcuration.dev_settings celery -A contentcuration worker --without-mingle --without-gossip -l info) || true", + "celery": "(cd contentcuration && DJANGO_SETTINGS_MODULE=contentcuration.dev_settings celery -A contentcuration worker --without-mingle --without-gossip -c 1 -l info) || true", "storybook": "start-storybook", "storybook:debug": "start-storybook --debug-webpack", "storybook:build": "build-storybook",