Open rawkode opened 6 months ago
@rawkode Yeah, this is kind of a tricky one. I honestly don't think this is possible with moon directly at the moment, since all persistent tasks are batched together. You may have to wrap the migration part in a bash/js script that waits to execute until the DB is online, and then update the moon task to execute the script.
On a side note, you shouldn't need install-dependencies
since moon does that automatically. https://moonrepo.dev/docs/how-it-works/action-graph#install-dependencies
Describe the bug
It's my understanding from the docs that persistent tasks are always run last, and kept running.
I'm curious how we should handle cases where we need to apply migrations to a database that needs to be running?
I've included my setup below, which runs
turso dev
to get us a libsql database running. Once it's running, I want to apply the migrations and rungrafbase
; also a persistent task.Steps to reproduce