UPDATE "fang_tasks" SET "state" = $1::fang_task_state , "updated_at" = $2 WHERE id = $3::uuid RETURNING id , metadata , error_message, state::text , task_type , uniq_hash, retries , scheduled_at , created_at , updated_at
