Skip to content

New task control features: workdir cleanup, input cleanup, output cleanup #1611

@prioux

Description

@prioux

When launching a task, we have at the top a 'control' panel where the user can select which data provider to send the results to, what group the task is in, a short description etc.

I'm suggesting we could add three more selection boxes for the user, for actions to be done at the end of a task:

  1. an option to tell CBRAIN to erase the inputs from the cache from the local cache (dangerous, explain why)
  2. an option to tell CBRAIN to erase the outputs from the cache (also dangerous, explain why)
  3. an option to tell CBRAIN to erase (or archive) the work directory of the task (also also dangerous)

Users must be told about the consequences of turning on any of these features.

Each of these could be tied to particular states, e.g. only when the task is Completed or Failed etc. All the possibilities would be too much to enumerate (and probably not all that useful) so we should think of identifying only the most common cases.

Implementation of these would be performed by adding new attributes to the CBRAIN task model and having the TaskWorker (which is the process taking care of a task's life cycle) create appropriate BackgroundActivity objects to implement the operations.

I think a default behavior could be to erase the task workdir when a task is completed.

See also #111 for a description of the workdir cleanup ideas, which was already in the planning stage many years ago.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions