add expire to tasks in redis; add redis const: