avoid using lazy magic number to avoid having None value in min()
avoid using lazy magic number to avoid having None value in min()

issue #48

hep-gc/cloudscheduler,hep-gc/cloudscheduler,hep-gc/cloudscheduler,hep-gc/cloudscheduler