def generate_scheduling_block_id(num_blocks, project='test'):
    """Generate a scheduling_block id"""
    _date = strftime("%Y%m%d", gmtime())
    _project = project
    for i in range(num_blocks):
        yield '{}-{}-sbi{:03d}'.format(_date, _project, i)
Generate a scheduling_block id