Bam! Tanzawa migrations for enabled plugins (loaded via the db) will automatically migrate on Django startup.Not sure how smart this is, but I’m gonna roll with it.
Interactions
5
  • In practice they’ll run when you enable them via the admin. The only time I could picture it being an issue was if you upgraded a plugin, then launched 5 instances simultaneously. It’s all SQLite backed anyways, so you could just copy the db outright for the spike.

    reply
  • like
  • Perhaps antithetical to Tanzawa, but one glaring issue with this practice is horizontally scaling distribution. If you spin up five instances of Tanzawa at once due to a spike in traffic, the five simultaneous migrations may be problematic

    reply
  • like