I have a long running task in my Rails app that I plan to run via cron when deployed. The problem is that I''m getting an expiration error when trying to test it out. Is there a way to change this timeout? The trace is included. The system is connecting to Flickr, which takes some time. Timeout::Error (execution expired): /usr/lib/ruby/1.8/timeout.rb:42:in `new'' /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'' /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'' /usr/lib/ruby/1.8/timeout.rb:55:in `timeout'' /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'' /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'' /usr/lib/ruby/1.8/net/protocols.rb:37:in `initialize'' /usr/lib/ruby/1.8/net/http.rb:430:in `open'' /usr/lib/ruby/1.8/net/http.rb:430:in `do_start'' /usr/lib/ruby/1.8/net/http.rb:419:in `start'' /usr/lib/ruby/1.8/net/http.rb:296:in `get_by_uri'' /usr/lib/ruby/1.8/net/http.rb:282:in `get_response'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:82:in `http_get'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:66:in `request'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:142:in `method_missing'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:350:in `sizes'' /usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/./flickr.rb:317:in `source'' /app/controllers/photo_controller.rb:62:in `update_from_flickr'' /app/controllers/photo_controller.rb:44:in `each'' /app/controllers/photo_controller.rb:44:in `update_from_flickr'' /app/controllers/photo_controller.rb:35:in `each'' /app/controllers/photo_controller.rb:35:in `update_from_flickr'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:7 56:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:7 56:in `perform_action_without_filters'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/filters.r b:295:in `perform_action_without_benchmark'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmark ing.rb:41:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmark ing.rb:41:in `measure'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/benchmark ing.rb:41:in `perform_action_without_rescue'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/rescue.rb :80:in `perform_action'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:3 56:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/base.rb:3 56:in `process'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/dispatcher.rb:32:in `dispatch'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:105:in `handle_dispatch'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:71:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/lib/ruby/1.8/webrick/server.rb:155:in `start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:144:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:144:in `start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:94:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:89:in `each'' /usr/lib/ruby/1.8/webrick/server.rb:89:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:79:in `start'' /usr/lib/ruby/1.8/webrick/server.rb:79:in `start'' /usr/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/webrick_server.rb:57:in `dispatch'' script/server:49