gocqlx icon indicating copy to clipboard operation
gocqlx copied to clipboard

migrate: detach context from parent context cancelation

Open mmatczuk opened this issue 2 years ago • 1 comments

Migrate uses Query with Context 1 2.

The problem is that the context may be canceled when migration statement is sent but before it's recorded in gocqlx migration table.

To solve this I suggest we do use xcontext to detach from the context lifecycle and manually check if the context has been canceled before processing next statement.

mmatczuk avatar Jul 13 '22 12:07 mmatczuk

cc @karol-kokoszka

mmatczuk avatar Jul 13 '22 12:07 mmatczuk