Esempio n. 1
0
def _start_simulation(data):
    """Setup and start the simulation.

    Args:
        data (dict): app data
    Returns:
        object: runner instance
    """
    s = data.models.computeJobCacheKey
    s.pkupdate(computeJobSerial=int(time.time()), )
    runner.job_start(data)
Esempio n. 2
0
def _start_simulation(data):
    """Setup and start the simulation.

    Args:
        data (dict): app data
    Returns:
        object: runner instance
    """
    data['simulationStatus'] = {
        'startTime': int(time.time()),
        'state': 'pending',
    }
    runner.job_start(data)