migracion add state to tasks