def _check_in(function, repo):
    serv = _get_redis_serv()
    minion = __grains__.get('id')
    timestamp = time.time()
    # Ensure this repo exist in the set of repos
    serv.sadd('deploy:repos', repo)
    # Ensure this minion exists in the set of minions
    serv.sadd('deploy:{0}:minions'.format(repo), minion)
    minion_key = 'deploy:{0}:minions:{1}'.format(repo, minion)
    if function == "deploy.fetch":
        serv.hset(minion_key, 'fetch_checkin_timestamp', timestamp)
    elif function == "deploy.checkout":
        serv.hset(minion_key, 'checkout_checkin_timestamp', timestamp)
    elif function == "deploy.restart":
        serv.hset(minion_key, 'restart_checkin_timestamp', timestamp)
Private function used for reporting that a function has started.
dataset/ETHPy150Open trebuchet-deploy/trebuchet/modules/deploy.py/_check_in