updating for use with resque >= 1.13.0