Skip to content

Postpone parsing of resources #2510

@fgvieira

Description

@fgvieira

Snakemake version

v7.32.4

Describe the bug

I am trying to set resources based on input file size as:

    resources:
        runtime = lambda w, attempt, input: input.size_mb * 7 * attempt,

However, I am getting the error:

Cannot parse runtime value into minutes for setting runtime resource

Shouldn't resources evaluation be postponed? It would probably also solve #2423.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions