bartongroup / slivka

http://bartongroup.github.io/slivka/
Apache License 2.0
7 stars 3 forks source link

Change limiter type to function. #92

Closed warownia1 closed 3 years ago

warownia1 commented 3 years ago

The type of the limiters may be changed from Limiter to Callable[[Dict[str, Any]], Optional[str]] as the Limiter objects also conform to this type. The rationale is that many users may be more comfortable writing functions than classes.

warownia1 commented 3 years ago

Even better solution would be for limiters to return Iterable[str]. This way the scheduler would be able to skip to the next runner if one is not available.