holgerBerger / hpc-workspace

Automatically exported from code.google.com/p/hpc-workspace
GNU General Public License v3.0
18 stars 13 forks source link

ws_allocate: check reminder time and workspace duration #69

Closed URZ-HD closed 3 years ago

URZ-HD commented 3 years ago

Currently it is possible to create a workspace which expires before the reminder will trigger:

ws_allocate -r 5 -m <mail> foo2
Info: creating workspace.
<path>
remaining extensions  : 10
remaining time in days: 1

In this case ws_allocate should recognize (and at least) notify that the duration is shorter than the reminder option. If the user specify both this should not be a "real" problem. But if the user omit the duration (and use the default value) this might be a problem (espacially when the default is very short).