I'm trying to set up dispatch queues in my vapor/fluent app. I'm using Postgres as my database. Most of the tutorials I've seen with vapor use Postgres, which is why I elected to use that, however the official tutorial for setting up queues uses Redis (?) which seems strange. I'm struggling to set up queues with postgres + fluent. Thank you for this great package.
What I've done is
in my configure.swift, however when i run my code I get: [ ERROR ] Job run failed: server: relation "_jobs" does not exist (parserOpenTable) so clearly I'm missing something obvious. I'm importing a package from import QueuesFluentDriver which allows me to do the .fluent() for my queues config. Not sure if its relevant but for my database configuration I do this:
When i add app.migrations.add(JobModelMigrate()) to my migrations, I get the following error when I run vapor run migrate
vapor run migrate
warning: '--enable-test-discovery' option is deprecated; tests are automatically discovered on all platforms
[4/4] Merging module App
Migrate Command: Prepare
Assertion failed: PostgresConnection deinitialized before being closed.: file PostgresNIO/PSQLConnection.swift, line 109
I'm trying to set up dispatch queues in my vapor/fluent app. I'm using Postgres as my database. Most of the tutorials I've seen with vapor use Postgres, which is why I elected to use that, however the official tutorial for setting up queues uses Redis (?) which seems strange. I'm struggling to set up queues with postgres + fluent. Thank you for this great package. What I've done is
in my configure.swift, however when i run my code I get: [ ERROR ] Job run failed: server: relation "_jobs" does not exist (parserOpenTable) so clearly I'm missing something obvious. I'm importing a package from import QueuesFluentDriver which allows me to do the .fluent() for my queues config. Not sure if its relevant but for my database configuration I do this:
When i add
app.migrations.add(JobModelMigrate())
to my migrations, I get the following error when I run vapor run migrate