You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to setup a task with a dependency on a persistent task?
From what I've read in the docs, tasks can't depend on persistent tasks, however, my use case:
I have a build script that requires a server from another workspace. I want a server to start before build task starts and the server to exit when build is complete. This would be particularly useful for anyone using CMS's.
I've looked into --parallel but it doesn't appear to make a difference, unless I'm not using it properly. should the parallel task be listed as persistent: true? When running my script:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to setup a task with a dependency on a persistent task?
From what I've read in the docs, tasks can't depend on persistent tasks, however, my use case:
I have a build script that requires a server from another workspace. I want a server to start before build task starts and the server to exit when build is complete. This would be particularly useful for anyone using CMS's.
I've looked into
--parallel
but it doesn't appear to make a difference, unless I'm not using it properly. should the parallel task be listed as persistent: true? When running my script:"ci:build": "dotenv -e ../../.env.local pnpm nodemon && pnpm copyfiles && pnpm build:payload && pnpm build:server --parallel --no-cache"
It simply hangs if I don't add
persistent: true
and fails if I do.Any suggestions are welcome!
Beta Was this translation helpful? Give feedback.
All reactions