Supabase Queues (pgmq)
Hello server, I was wondering if anyone has gotten PSMQ to work properly in the supabase container running locally? I don't think the supabase documentation talks about this, it assumes you'll be working with the queues only remotely. I wanted to create and test queues locally rather than having to interface with the cloud.
I was successfully able to do it, just curious if anyone else faced this issue. Thanks!
14 Replies
@inder Thanks for this. I was more so asking about how you guys got queues to work locally. The thread above still relies on the queue in the cloud, does it not?
No, it talks about setting up queues locally with supabase cli
localhost
Sorry, I may have a misunderstanding. So when you initially set up queues and ran your queues worked straight out of the box?
Make sure your config.toml looks like this
https://discord.com/channels/839993398554656828/1377145368814555186/1377220600321544302
And you also have to enable it via dashboard
Yep, already done that. I'm not sure why I assumed that it wasn't supported locally. I guess the docs don't say it explictly.
Spent the last 3 hours setting up scripts
where in the documentation does it tell us to expose the schema in the toml?
Not saying you're wrong, just want to see if I missed something
I see, thank you. I appreciate your help!
I remember the issue, when I created my migration file I was getting:
I just created scripts to install pgmq in my docker container when running
I guess however, this was not necessary.
Either way, appreciate your help! 🔥
You can set up via migrations if you don't want to enable it manually everytime via dashboard
this is a valid approach
otherwise everytime you reset local db, you'll have to go into dashboard and setup queues
okay cool, so it was not pointless.
Nice.
I see you have a script install-pgmq . Are you installing extension or enabling it? Because this extension is pre-installed
installing.
You don't have to. Its preinstalled. You just need to enable it.
ahh, okay. I'll revisit this.
Thank you, I prefer to do it via migrations as I reset and stop often.