We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbcd3b1 commit cd5155bCopy full SHA for cd5155b
snakemake_interface_software_deployment_plugins/__init__.py
@@ -58,13 +58,15 @@ def once(self, func):
58
"""Decorator to cache the result of a method call that shall be only
59
executed once per combination of plugin and "within" environment.
60
"""
61
+
62
def wrapper(self, *args, **kwargs):
63
key = (self.__class__, self.within)
64
if key in self._cache:
65
return self._cache[key]
66
value = func(*args, **kwargs)
67
self._cache[key] = value
68
return value
69
70
return wrapper
71
72
@abstractmethod
0 commit comments