Miku Laitinen and Théo Reichel
86fc51b5a9
[IMP] session_redis: allow configuring Redis URL instead of host & port.
...
Back-porting from [13] branch
2021-03-29 18:26:21 +02:00
Guewen Baconnier and GitHub
981a99310c
Merge pull request #184 from guewen/12.0-redis-json-encode-date
...
[12.0] Encode/decode date and datetime in redis sessions
2020-05-28 20:44:07 +02:00
Andreas Perhab and Paul
c18e84a3bf
[FIX] session_redis: fix flake8 errors
2020-05-26 14:46:56 +02:00
Andreas Perhab and Paul
9ac4d26470
[IMP] session_redis: add option to copy sessions from filesystem when starting
2020-05-26 14:39:27 +02:00
Andreas Perhab and Paul
18b5ceaebc
[FIX] session_redis: add required option 'post_load' for server wide addon
2020-05-26 14:39:08 +02:00
Guewen Baconnier
2c5805e858
Add (de-)serialization of set objects in sessions
2020-05-26 11:39:39 +02:00
Guewen Baconnier
2a022ba537
Encode/decode date and datetime in redis sessions
...
In several places, odoo sets a datetime object directly in the
session. It works with the default session handler of odoo which
uses pickle.
But datetime and date are not json serializable by default.
Add custom encoder / decoder to handle them (from
https://github.com/OCA/queue/blob/dc12a6a20ecfd15c5b90f9b089c9a64cf9d8bbe4/queue_job/fields.py#L57-L99 )
See the discussion raised by @PCatinean on https://github.com/camptocamp/odoo-cloud-platform/pull/176
2020-05-26 11:39:30 +02:00
Patrick Tombez
c139b4da0a
Add anonymous redis session expiration configuration
2020-01-29 16:31:38 +01:00
jcoux
5c43e3547e
fixup! Migration to 12.0
2018-11-23 09:31:46 +01:00
jcoux
7eac1013eb
Migration to 12.0
2018-10-24 12:44:45 +02:00
jcoux
73293a1390
Set all modules to uninstallable
2018-10-24 11:53:27 +02:00
Guewen Baconnier
543a9eb22d
Fix order of args in logs
2018-03-13 15:00:26 +01:00
Guewen Baconnier and jcoux
39e71ff334
Expire sessions generated by health checks quickly
...
The default expiration of sessions is 7 days. With healthchecks run
every few seconds, we quickly have millions of anonymous sessions in
Redis. Allow to define a custom expiration for some sessions and set a
very short one for the monitoring requests.
2018-01-11 10:46:55 +01:00
Yannick Vaucher and Guewen Baconnier
a3abfca6c5
Don't try to decode None when key was removed from database
2018-01-11 10:41:26 +01:00
Guewen Baconnier
6cc18007dd
Remove web_kanban, does no longer exist in 11.0
2018-01-11 10:41:26 +01:00
Guewen Baconnier
207cd6504c
Encode/decode redis data which expects bytes
2017-11-15 16:25:02 +01:00
Guewen Baconnier
ea44b4fd15
Remove call to encode, str expected, not bytes (py3)
2017-11-15 16:15:39 +01:00
Guewen Baconnier
b084ce278a
Set addons installable
2017-11-15 14:56:45 +01:00
Guewen Baconnier
f9c290a45a
Apply 2to3 automatic migration
2017-11-15 14:55:11 +01:00
Guewen Baconnier
96c9a38150
Set addons uninstallable
2017-11-15 14:31:23 +01:00
Guewen Baconnier
c7240e1fe1
Allow to use a Redis Sentinel
2017-05-16 09:07:59 +02:00
Guewen Baconnier
8e4b461c75
Migrate addons to 10.0
2016-12-21 21:29:09 +01:00
Guewen Baconnier
022f9003e8
Add debug logs in session_redis
2016-12-14 11:25:12 +01:00
Guewen Baconnier
92880deeab
Explicit session_redis must be started in --load
2016-11-10 16:14:19 +01:00
Guewen Baconnier
3c8b74369b
Make pylint happy
2016-11-03 16:58:36 +01:00
Guewen Baconnier
b5f00c26dc
Fix pep8
2016-11-02 10:29:02 +01:00
Guewen Baconnier
63daa99cdd
Add session_redis
2016-10-24 17:12:27 +02:00