resque
- Ejemplos
Sin una posibilidad de que alguien venga al resque. | Without a chance of someone coming to the resque. |
El hombre llamado Daeng quieres resque a su pueblo de los dinosaurios mal, Daeng puede vencer a los dinosaurios con su precisión y conocimientos de matemáticas. | The Man named Daeng want to resque his village from bad Dinosaurs, Daeng can beat the dinosaurs with his accuracy and math knowledge. Daeng of The Forest, play free Adventure games online. |
Resque viene con una interfaz web, escrita en Sinatra. | Resque comes with a web interface, written in Sinatra. |
A continuación tenemos que crear las tareas Rake de Resque. | Next we have to add the Resque Rake tasks. |
Ya tenemos Resque configurado y gestionando los trabajos que le damos. | We now have Resque all set up and handling the jobs we give it. |
Con Redis en marcha podemos poner Resque en el Gemfile de nuestra aplicación y luego instalarlo con bundle. | With Redis running we can add Resque to our application's Gemfile and then install it by running bundle. |
En este fichero llamaremos a use sobre Resque::Server, que es una aplicación Rack, y añadiremos la autenticación básica de HTTP. | In this file we call use on Resque::Server, which is a Rack app, and add the Basic Authentication. |
Redis ya es bastante sorprendente por sí mismo, y merecería la pena un capítulo dedicado en exclusiva, pero por ahora solo lo vamos a usar con Resque. | Redis is fairly awesome in itself and well worth an episode on its own, but here we're just going to use it with Resque. |
Sería muy útil poder embeber la interfaz administrativa de Resque en nuestra aplicación Rails para no tener que arrancarla y gestionar otro proceso separado. | It would be useful though if we could embed Resque's web interface into our Rails application so that we don't have to start it up and manage another separate process. |
Con Resque configurado ya podemos centrarnos en mover el código que llama al servicio web a un proceso en segundo plano y gestionarlo con un proceso de ejecución de Resque. | Now that we have Resque set up we can focus on moving the code that calls the web service into a background process and handling it through a worker. |
Hagamos un alto en nuestra serie dedicada a las novedades de Rails 3.1 y vamos a echarle un vistazo a Resque, que es una forma muy interesante de gestionar tareas en segundo plano en las aplicaciones Rails. | In this episode we'll take a break from our series on the new features of Rails 3.1 and take a look at Resque which is a great way to handle background jobs in Rails applications. |
Tenemos que asegurarnos de que el servidor Resque está cargado para que esto funcione por lo que en el Gemfile tenemos que usar la opción require con la gema resque. | We need to make sure that the Resque server is loaded for this to work and so inside the Gemfile we'll add a require option to the resque gem. |
Ya tenemos una tarea de Rake que podemos usar para lanzar los procesos de ejecución de Resque. | We now have a Rake task that we can use to start up the Resque workers. |
