Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9313433
D5641.id20131.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
807 B
Subscribers
None
D5641.id20131.diff
View Options
diff --git a/docker/services/swh-web/entrypoint.sh b/docker/services/swh-web/entrypoint.sh
--- a/docker/services/swh-web/entrypoint.sh
+++ b/docker/services/swh-web/entrypoint.sh
@@ -46,6 +46,17 @@
echo "Creating Django admin user"
echo "$create_admin_script" | python3 -m swh.web.manage shell
+ echo "Start periodic save code now refresh statuses routine (in background)"
+ (
+ while true
+ do
+ (date && django-admin refresh_savecodenow_statuses \
+ --settings=${DJANGO_SETTINGS_MODULE} 2>&1) >> /tmp/refresh-statuses.log
+ sleep 15
+ done
+ ) &
+ disown
+
echo "starting the swh-web server"
exec gunicorn --bind 0.0.0.0:5004 \
--threads 2 \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 2, 11:39 AM (6 d, 2 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3226502
Attached To
D5641: docker-dev: Refresh save code now statuses periodically
Event Timeline
Log In to Comment