added cron in js for each 2 minutes o consult api
suport finished events