Open tonycosentini opened 3 months ago
Hey! If you're using the latest builds (and logged in), you can use the migration hooks for the declarative workflow as well - I'll update the docs.
Let me know if this helps, or you need more assistance.
Are there no plans to just have a plain old parameter like --lock-timeout
in the migrations-based flow?
The lock-timeout
defines the maximum duration that Atlas waits to acquire an advisory lock before starting the migration, ensuring that there are no concurrent runs. It does not set the session/transaction lock_timeout.
This flag name is ambiguous, so I think we should change it to wait_timeout
instead.
(Sorry if this exists, I couldn't find it when searching through the docs/source.)
Is it possible to add an option to set the lock timeout for
atlas schema apply
?I have a use case for some high write-throughput tables where we need to run with a very low lock timeout to prevent performance issues (basically we use this workflow with a low lock timeout that retries until it can safely get the lock and apply the change).