guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
143 stars 7 forks source link

Feature: Background task support #114

Open guybedford opened 2 years ago

guybedford commented 2 years ago

Long-running tasks like deno --watch or servers can be useful to depend on to ensure they are initialized along with the task being run.

It could be useful to support a background = true option for tasks, where the task is invoked, but completion is not waited on before trrigering the parent task that depends on it.

Further, it can be useful to have the ability to automatically restart the task when it fails or to have background tasks that get restarted when their dependencies change. Perhaps background = 'watched' or background = 'keepalive' could be useful ways to achieve these.