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
call another task that is needed by the main task to do its job and kill the needed task when the main task as finish
it can run a long running task in the background belong to the main task so the main task can access the api then when the main task as finish kill the api
Non-goals
it should not be running the needed task after the main task
Background
i wanted to make a task to build my nextjs application that use a cms in the same monorepo project but since the cms is a long running process i can't tell to be a dependance of the build task
i was forced to run a script that start my api before and kill it after turbo finish running my task
Proposal
the api should be like the with keyword in the task definition but with the keyword withDestroy or somthing like this
it should be an array and it can be either a simple task (api#start) or multiple task with (start) as start the name of the task in the turbo.json configuration file
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
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-goals
Background
i wanted to make a task to build my nextjs application that use a cms in the same monorepo project but since the cms is a long running process i can't tell to be a dependance of the build task
i was forced to run a script that start my api before and kill it after turbo finish running my task
Proposal
the api should be like the with keyword in the task definition but with the keyword withDestroy or somthing like this
it should be an array and it can be either a simple task (api#start) or multiple task with (start) as start the name of the task in the turbo.json configuration file
Beta Was this translation helpful? Give feedback.
All reactions