Skip to content

ExtendedTasks: how to kill a task? #4093

@mauromiguelm

Description

@mauromiguelm

Thanks ExtendedTasks implementation, it has a promissing future!

As of shiny 1.8.1.1, the methods available for ExtendedTasks are:

     • ‘ExtendedTask$new()’

     • ‘ExtendedTask$invoke()’

     • ‘ExtendedTask$status()’

     • ‘ExtendedTask$result()’

It would be quite useful to have a ExtendedTask$Kill() method that would kill the respective process associated with the task. Such method would better handle cases of expensive tasks where user decides to change inputs half-way. Such actions would create multiple processes running expensive tasks, which is something we want to avoid.

Concept:

ExtendedTask$kill() # kill all previous task
ExtendedTask$invoke() #start a new task based on new input

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