Skip to content

Default to no availability limits if user doesn't provide any for a process #743

@tsmbland

Description

@tsmbland

If a process has no availability limits defined, then we should assume that the limits are [0, 1] (i.e. no limits).

However, I'm finding that if I don't define any limits for a process it sometimes panics, caused by this line, or sometimes it gives an error message that no availability limits are defined for the process - neither of which we want!

Something to bear in mind when tackling #363

Also related to #737 as the error message comes from a similar part of the code, which I think we should swap out entirely to use a graph approach

Edit: the panicking was fixed by #771, but we do still get an error message if process availabilities aren't defined for a process, which isn't ideal as it seems reasonable to infer [0,1] if limits aren't defined.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions