top-sim / topsim

TopSim is a telescope observation and data post-processing simulator, based on a fork of Robert Lexis' CloudSimPy
MIT License
3 stars 3 forks source link

task.py - Update to allow for delays #1

Closed myxie closed 3 years ago

myxie commented 4 years ago

When a task gets put on a cluster, we do an RNG for a simulation-specific likelihood of failure. Based on this, we then change the task runtime by a certain amount (again, simulation specific). This will then change the total runtime of the workflow

Delays should be indicated with on a ‘assumed task finish time and an ‘actual task finish time’ variable.

This delay should be a result of a DelayModel object. 

myxie commented 3 years ago

Implemented as of this commit.

>>> dm = DelayModel(prob=0.1, dist='normal', dm=DelayModel.DelayDegree.LOW)