Skip to content
Snippets Groups Projects
  1. Jul 09, 2018
    • Benjamin Bertrand's avatar
      Use sqlalchemy events hook to trigger tasks · d9516a98
      Benjamin Bertrand authored
      Use the before_flush hook to trigger the core services update.
      It's much nicer than having to call a method in several places.
      
      The core services update is triggered on creation/modification/deletion
      of an Interface.
      
      In the before_flush we can manipulate the session (add objects) but we
      shouldn't call commit.
      The db.session.commit() was removed from the launch_task method.
      d9516a98
  2. Jul 06, 2018
  3. Jul 03, 2018
  4. Jul 02, 2018
  5. Jun 28, 2018
  6. May 25, 2018
  7. May 24, 2018
  8. May 23, 2018
  9. May 22, 2018
  10. May 09, 2018
  11. Apr 27, 2018
    • Benjamin Bertrand's avatar
      f7c71b50
    • Benjamin Bertrand's avatar
      Add RQ Dashboard blueprint · f384a9da
      Benjamin Bertrand authored
      - RQ Dashboard shall only be accessible to admin users
      - "REDIS_URL" is hard-coded in rq-dashboard (had to rename RQ_REDIS_URL)
      f384a9da
    • Benjamin Bertrand's avatar
      Change Flask-Session redis_store config_prefix · a17dfd20
      Benjamin Bertrand authored
      The "REDIS_URL" variable is hard-coded in RQ Dashboard.
      
      REDIS_URL was used by redis_store that is passed to Flask Session.
      The url variable used by Flask-Redis can be changed by setting the
      config_prefix.
      
      1. Rename REDIS_URL to SESSION_REDIS_URL
      2. Rename redis_store to session_redis_store
      3. Use "SESSION_REDIS" config_prefix to initialize session_redis_store
      
      This makes it clear that this Redis instance is used by Flask-Session.
      REDIS_URL will be used for RQ.
      a17dfd20
Loading