S.F. to allocate $42 million for workforce training programs