Replies: 3 comments 4 replies
|
It's an interesting problem. Specifically for worktrees, I think you should be completely isolating your databases. Here's how I add a worktree to my database name: https://gist.github.com/bensheldon/bda0d1d6afc0dba3d389b0c1aee8e324 Is that possible given your setup? |
0 replies
|
Yeah, not really. In order to test against real data, our database dump expands to 60 GB. I can’t copy that around for each new worktree. I understand the reasoning and I would love to do that, but it’s just not realistic to copy 60 GB of data on start.
We have fully isolated test databases, and that works great. I even have parallel databases per workspace: dayjob00_00, dayjob00_01, dayjob01_00, …
I will most probably fork and add that feature for ourselves. If you want to merge that later, fine. If you don’t, we can keep our fork up-to-date.
Thanks,
François
|
1 reply
|
I didn’t know about queue_name_prefix! I’ll go ahead and investigate that.
The docs aren’t explicit on whether `—queues "dayjob01_*:0"` is allowed or not. Is that the feature you’re recommending be added instead?
|
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey all!
In dev, I have multiple workspaces:
Each
dayjobNNis a different workspace (git worktree, jj workspace) where I will run both a web server process and a GoodJob worker instance.If I'm developing a job in dayjob01, I wouldn't want the GoodJob worker in dayjob08 or 00 to pick up that job. I'm thinking of tagging all jobs with the workspace's basename to add that filtering capability, but the docs does not mention if that filter exists.
My ideal workflow would be:
I see there is already an
"index_good_jobs_on_labels" gin (labels) WHERE labels IS NOT NULL. That would help with performance.@bensheldon, would you be open to a PR that adds such a feature?
Related, can I add a label in a before_enqueue?
I haven't tried it, but I guess this should work?
Thanks a bunch!
François
All reactions