Commit graph

57 commits

Author SHA1 Message Date
Laura Klünder
b23a2d4fc9 update german translation 2018-12-16 02:45:03 +01:00
Laura Klünder
e170e128bc manage map updates in control panel 2018-12-16 02:23:05 +01:00
Jenny Danzmayr
328fb1b215 lock mapudates before setting cache if possible 2018-12-08 05:54:30 +01:00
Jenny Danzmayr
6d166325e6 fixed MapUpdte logic to work without an existing map update 2018-12-08 05:47:19 +01:00
Jenny Danzmayr
aa180d0946 added cleareventdata management command 2018-12-08 03:37:05 +01:00
Laura Klünder
03018a2f46 avoid pickle load errors while processupdates is running 2017-12-25 17:42:30 +01:00
Laura Klünder
06203e6cca introducing the Locator 2017-12-25 16:41:59 +01:00
Laura Klünder
cdfef25034 implement SiteUpdates: make the user reload on critical code changes 2017-12-24 01:55:30 +01:00
Laura Klünder
895cf20d63 change process_updates lock key 2017-12-23 16:04:29 +01:00
Laura Klünder
25a0a57be9 fix check if lock was acquired 2017-12-23 16:02:18 +01:00
Laura Klünder
d554a98985 timeout → blocking_timeout 2017-12-23 15:46:56 +01:00
Laura Klünder
c1c5dde682 use redis lock in process_updates if possible 2017-12-23 15:19:33 +01:00
Laura Klünder
ff5826d8c2 skip stuff if processupdates is no geometries were affected 2017-12-23 02:38:18 +01:00
Laura Klünder
a4beed9f93 don't lock for last_update… ever 2017-12-22 13:08:52 +01:00
Laura Klünder
040669755f fix typo 2017-12-20 20:16:28 +01:00
Laura Klünder
6cb4b05f82 try to fix race condition 2017-12-20 20:14:00 +01:00
Laura Klünder
da115171d1 fix lock problems… hopefully 2017-12-20 13:13:49 +01:00
Laura Klünder
07a1a79cc4 fix typo 2017-12-20 11:49:31 +01:00
Laura Klünder
519eeebf2f fix mapupdate caching 2017-12-19 22:27:17 +01:00
Laura Klünder
9564d92ec3 set mapdata:last_update only if we are saving a new map update 2017-12-14 00:23:58 +01:00
Laura Klünder
ab391e9a4c avoid cache errors in MapUpdate 2017-12-14 00:20:38 +01:00
Laura Klünder
46c581627f fix fatal error when using current_cache_key as an etag func 2017-12-04 17:41:17 +01:00
Laura Klünder
e5f53aa399 rebuild router when processing updates 2017-11-27 16:53:56 +01:00
Laura Klünder
2185c1ac6a enable using the tileserver with minimal requirements 2017-11-21 02:12:00 +01:00
Laura Klünder
87d1e3e7f5 don't import anything in render.__init__ 2017-11-20 02:53:49 +01:00
Laura Klünder
94ae86d690 refactor even more data→geometry and levelrender 2017-11-20 02:38:35 +01:00
Laura Klünder
116590b88f c3nav.mapdata.cache → c3nav.mapdata.utils.cache 2017-11-20 00:39:01 +01:00
Laura Klünder
3dd41a3504 determine last_processed_update beforehand 2017-11-17 14:59:46 +01:00
Laura Klünder
80dbaf232e fix terrible error where last_processed_update is not updated in the cache 2017-11-16 20:57:10 +01:00
Laura Klünder
c890ae6bbf better logging in many places 2017-11-16 20:54:59 +01:00
Laura Klünder
00df96cbe0 better output when processing map updates 2017-11-16 19:40:57 +01:00
Laura Klünder
689139a6ec fix broken import 2017-11-16 19:27:58 +01:00
Laura Klünder
8c9346a074 try to fix MapHistory updating 2017-11-16 19:24:49 +01:00
Laura Klünder
023f80ab6a don't crash if changed_geometries wasn't set 2017-11-16 03:12:26 +01:00
Laura Klünder
44dda5cd77 save changed_geometries into file instead of pickling it into the db 2017-11-16 02:47:28 +01:00
Laura Klünder
ef73932ea3 mapupdate: set cache and queue process task using transaction.on_commit 2017-11-15 23:01:43 +01:00
Laura Klünder
4ab38758eb defer MapUpdate.changed_geometries by default 2017-11-14 23:45:53 +01:00
Laura Klünder
e1d27b637c process_updates() don't lock globally, but only on unprocessed updates 2017-11-10 23:23:22 +01:00
Laura Klünder
aa7ffab45c use delay() instead of apply_async() 2017-11-10 18:30:40 +01:00
Laura Klünder
64648d5d4f fix updating map history 2017-11-10 17:58:39 +01:00
Laura Klünder
efbbbe2495 schedula process_map_updates usind celery on new MapUpdate creation 2017-11-10 16:56:50 +01:00
Laura Klünder
ea22c7a927 process updates asynchronously 2017-11-10 16:32:58 +01:00
Laura Klünder
de6e67d8ae fix import 2017-11-05 17:15:20 +01:00
Laura Klünder
df451f9143 cleanup render code to make room for the opengl rendering engine 2017-11-04 23:21:36 +01:00
Laura Klünder
506b959946 remove delete_old_cached_tiles task because new caching does not need this 2017-10-24 18:14:35 +02:00
Laura Klünder
6b6e3afa7b tile view: use new intelligent caching 2017-10-24 18:12:46 +02:00
Laura Klünder
f34dd89424 change MapHistory format from cache_key to id and timestamp 2017-10-24 01:59:50 +02:00
Laura Klünder
1b972c4ab0 rebuild LevelRenderData after saving changed_geometries 2017-10-24 01:14:36 +02:00
Laura Klünder
24a2fe9522 write binary map history index 2017-10-24 00:11:02 +02:00
Laura Klünder
82fc9f2264 rename cache_key→current_cache_key 2017-10-23 22:49:45 +02:00