If an otherwise eligible individual fails without good cause, as determined by the commissioner under rules prescribed by the commissioner, to attend a job search workshop or a training or retraining course when directed by the department and such workshop or course is available at public expense, such individual shall not be eligible for benefits with respect to any week in which such failure occurred.