Skip to content

Signal option for watched mode (instead of just killing the process) #968

@HeCorr

Description

@HeCorr

I've noticed that Task kills the process when reloading it in Watch mode instead of gracefully terminating it with SIGTERM:

image

As far as I can tell, this happens because the task context gets cancelled here, which seems to just kill the process instead of sending an interrupt signal.

It would be nice if there was an option to gracefully stop it instead (and wait for it to stop, in case the cleanup takes a while).

I think it should also behave like InterceptInterruptSignals and forcefully exit if 3 consecutive interrupts are detected (in case shutdown hangs).

My machine is running Windows 10 by the way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: watcherChanges related to the Taskfile watcher.

    Type

    No fields configured for bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions