Journal Entry, November 27th to December 4th 2020

December 4, 2020 · 1 min read

Laravel

  1. Tue Dec 1

    • Forgot to transfer environment variables for the following:

      QUEUE_CONNECTION=redis
      REDIS_DB=0
      REDIS_CACHE_DB=1
      REDIS_HORIZON_DB=2
    • This caused 2 issues, horizon was no longer split between databases but since 0, 1, and 2 are the defaults this really didn't impact anything.
    • The bigger problem was QUEUE_CONNECTION defaulted to synchronized jobs instead of via redis so Horizon had nothing to do.
    • Getting the environment variables and horizon working didn't show any change, I believe because the data seeded in the redis database was trying to mix earlier version Horizon 2.x with 3.x usage patterns.
    • Flushing the db with flushdb reset horizon and now running jobs via dispatch() show up as expected.