pass rails-generated urls to background task