Set expiration dates when starting tasks (#1303)