def insert_job():
    """ Write job shards into redis. """
    seed = str(int(time.time()))  # round it
    total_shards = tasa.conf.shards
    jobs = []
    for shard in range(1, total_shards + 1):
        jobs.append(
            [seed, '%d/%d' % (shard, total_shards), tasa.conf.ports])
    MasscanWorker.qinput.send(*jobs)
dataset/ETHPy150Open PaulMcMillan/toorcon_2013/configurator/looksee/looksee.py/insert_job/original