Skip to content

Task should not exit on interrupt for interactive tasks #710

@amancevice

Description

@amancevice
  • Task version: v3.12.0 (h1:viFy8kdDZ2iTcpTuxzzJCeKtTGt9U+5iXMVIpLjvIro=)
  • Operating System: macOS 12.3.1 (Monterey)

Example Taskfile showing the issue

version: "3"
tasks:
  console:
    desc: Open IRB console
    interactive: true
    cmds:
      - bundle exec irb

Executing a keyboard interrupt (^C on macOS) causes Task to fail the task and exit the IRB session whereas I would expect IRB to handle the interrupt until it's exited

$ task console
task: [console] bundle exec irb
irb(main):001:0> ^C
task: signal received: interrupt
irb(main):001:0> task: Failed to run task "console": context canceled
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions