Skip to content

Using --cachedir option leaves output of workflow in cache instead of the directory the workflow is run #86

Open

Description

@prismofeverything

The title basically sums it up. When running cwl-runner and specifying a --cachedir, the output that was previously placed in the directory the workflow is run is instead left nested in the cache.

Shouldn't the use of --cachedir be transparent to the function of the tool, and leave the "interface" of the tool the same? IE, the output should go to the same place whether you are using --cachedir or not.

Activity

  1. thomasyu888 commented on May 17, 2016

    @thomasyu888

    +1

  2. prismofeverything commented on May 23, 2016

    @prismofeverything
    ContributorAuthor

    Any word on this? It is currently a blocker for being able to use this feature.

  3. tetron commented on May 23, 2016

    @tetron
    Member

    Would you prefer the files in the output directory be symlinked, hard linked (if possible) copied, or moved? (the last one would prevent reuse of any steps that contribute files to the workflow output).

  4. prismofeverything commented on May 23, 2016

    @prismofeverything
    ContributorAuthor

    Copied would be ideal. That would keep the behavior identical whether you
    are using the cache or not, which is really the point. The use of the cache
    should be invisible to other tools at either end of the pipeline.

    On Mon, May 23, 2016 at 4:20 PM, Peter Amstutz [email protected]
    wrote:

    Would you prefer the files in the output directory be symlinked, hard
    linked (if possible) copied, or moved? (the last one would prevent reuse of
    any steps that contribute files to the workflow output).

    —
    You are receiving this because you authored the thread.
    Reply to this email directly or view it on GitHub
    #86 (comment)

  5. tetron commented on May 24, 2016

    @tetron
    Member

    Take a look at cwltool.workflow.WorkflowJob.job() and look for if move_outputs: this is the code that moves files from the intermediate output directory to the final output directory. It should be easy to add a code path that instead copies the files when cachedir is in kwargs.

  6. added a commit that references this issue on Jul 23, 2017
  7. kapilkd13 commented on Aug 9, 2017

    @kapilkd13
    Contributor

    Hi @tetron, Is this issue resolved. Also I couldn't find the move_outputs: related code in cwltool.workflow.WorkflowJob.job(). I guess that functionality has been moved to https://github.com/common-workflow-language/cwltool/blob/master/cwltool/process.py#L256 ,is it correct.

  8. added a commit that references this issue on Mar 20, 2018
  9. added a commit that references this issue on Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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