RoR服务器上发生了什么 - OpenUri / link_to remote:true

I need call some php script from Rails application and I would like to know what's happening on server and what's the best choice to run this php script when I ..

Call the php script like this:

= link_to('Run', 'http://domain.tld/myscript.php', remote: true)

or link to some action where is:

open('http://domain.tld/myscript.php)

I think the best option is link_to. When I use open, it's waiting for response.. PHP script runs about 30 minutes..

Now I use open and delayed_job, but I think link_to is less demanding on the server.

Thanks