Skip to content

dynamic resources breaking change in snakemake 9.16.3 #3970

@LukaP-BB

Description

@LukaP-BB

Testing how the latest version handles my current workflows, this introduces breaking changes on how the dynamic resources are handled. Those are not expected in a patch release.

In a workflow profile, I have the following setup :

set-resources:
    whatshap_phase:
        mem_mb: 3*1024 + input.size_mb

Using snakemake=9.16.3, this raises :

Error:
  ResourceConversionError: Resource 'mem_mb' assigned callable that returned '<TBD>' (type <class 'snakemake.common.tbdstring.TBDString'>). Must return an int or float for unit conversion. 

I consider this a regression, and invalidates the documentation here : https://snakemake.readthedocs.io/en/stable/executing/cli.html#executing-profiles

Additional context : #3421 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions