Files
CTFd/tests
Kevin Chung 2bc66c1ecb Pool pubsub connections for notifications (#1626)
* Add a `listen()` method to `CTFd.utils.events.EventManager` and `CTFd.utils.events.RedisEventManager`. 
  * This method should implement subscription for a CTFd worker to whatever underlying notification system there is. This should be implemented with gevent or a background thread.
  * The `subscribe()` method (which used to also implement the functionality of the new `listen()` function) now only handles passing notifications from CTFd to the browser. This should also be implemented with gevent or a background thread. 
* Pool PubSub connections to Redis behind gevent. This improves the notification system by not having a pubsub connection per browser but instead per CTFd worker. This should reduce the difficulty in deploying the Notification system.
* Closes #1622 
* Make gevent default in serve.py and add a `--disable-gevent` switch in serve.py
* Revert to recommending `serve.py` first in README. `flask run` works but we don't get a lot of control.
* Add `tenacity` library for retrying logic
* Add `pytest-sugar` for slightly prettier pytest output
2020-09-01 12:37:03 -04:00
..
2020-08-21 02:49:28 -04:00
2020-07-01 12:06:05 -04:00
2020-07-09 13:40:35 -04:00
2020-07-01 12:06:05 -04:00
2020-07-01 12:06:05 -04:00
2020-08-21 02:49:28 -04:00
2020-08-21 02:49:28 -04:00
2017-01-07 02:44:31 -05:00
2020-08-19 20:18:37 -04:00
2020-02-29 23:37:57 -05:00
2020-07-09 13:40:35 -04:00
2020-02-17 02:17:25 -05:00
2020-02-17 02:17:25 -05:00
2020-07-01 12:06:05 -04:00