Skip to content

v0.12.0 all tasks go to the status discarded with InsertTx #618

@sxwebdev

Description

@sxwebdev

After upgrading to version 0.12.0 all my new tasks created in the following way:

riverClient.InsertTx(ctx, dbTx,
	taskmanager.SomeArgs{
		Key: value,
	},
	&river.InsertOpts{
		UniqueOpts: river.UniqueOpts{
			ByArgs: true,
		},
		ScheduledAt: time.Now().Add(time.Second*30),
	},
)

Began to be marked in the database with the status "discarded"

This problem was solved only in this way:

func (s *Worker) InsertOpts() river.InsertOpts {
	return river.InsertOpts{
		UniqueOpts: river.UniqueOpts{
			ByArgs: true,
		},
	}
}

It looks like unique parameters are ignored at the task creation level.

Before updating to version 0.12.0, I rolled out migrations from scratch

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions