Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snakemake+Tibanna should upload log files #309

Open
nhartwic opened this issue Dec 1, 2020 · 0 comments
Open

Snakemake+Tibanna should upload log files #309

nhartwic opened this issue Dec 1, 2020 · 0 comments

Comments

@nhartwic
Copy link

nhartwic commented Dec 1, 2020

When using tibanna as a back end for snakemake, it would be nice if log output would be uploaded regardless of if the job fails. This would make debugging a lot easier. As is, getting files back from a failed run is a major pain in the ass.

Imagine a snakefile with the following contents...

rule test:
    output:
        "something.1.txt"
    log:
        "somelog.1.txt",
        "somelog.2.txt"
    shell:
        """
        echo test1 > {output}
        echo test2 > {log[0]}
        echo test3 > {log[1]}
        exit 1
        """

...If you run this locally, you end up with "somelog.1.txt" and "somelog.2.txt". "something.1.txt" will get deleted because the shell script raised a nonzero exit code. If you run it with tibanna, none of the files are uploaded to aws at the moment. Ideally, "somelog.1.txt" and "somelog.2.txt" would both be uploaded to more closely match local expected behavior.

I'm not sure if this is the right place to post the issue. As is, I went ahead and posted this on both tibanna and snakemake. I'll happily close one upon being informed that it is in the wrong place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant