10000 Running into issues getting a client to start · riverqueue river · Discussion #817 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Running into issues getting a client to start #817

Answered by brandur
mylanconnolly asked this question in Q&A
Discussion options

You must be logged in to vote

@mylanconnolly Hm, there's nothing obviously wrong I can see in your code above. I suspect you may be referencing a package in workers.NewWorkerBundle that's different than what you were expecting or something of that nature.

Here's your code with very few modifications all baked into one main.go file (I added a main function, default value for DATABASE_URL, and Stop for river Client, but that's about it):

package main

import (
	"cmp"
	"context"
	"fmt"
	"log/slog"
	"os"
	"time"

	"github.com/jackc/pgx/v5/pgxpool"
	"github.com/riverqueue/river"
	"github.com/riverqueue/river/riverdriver/riverpgxv5"
)

type ExpireSessionsArgs struct{}

func (ExpireSessionsArgs) Kind() string { return "expir…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mylanconnolly
Comment options

Answer selected by mylanconnolly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0