Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6032707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:22:24+00:00 2026-05-23T05:22:24+00:00

I need a way to implement deferred FTP uploads, to different servers, in a

  • 0

I need a way to implement deferred FTP uploads, to different servers, in a Rails3 application. This will be the scenario:

  1. The user builds a folder full of files and subfolders, with a simple Rails3 CMS (DONE)
  2. When the user ends his work, he would click on a deploy button.
  3. The system takes the control and stores the user request.
  4. The systen gives the control back to the user, this way he can work on other stuff.
  5. At the same time the system initiates 10 FTP uploads of the same folder.
  6. When an upload ends it will store its status somewhere.
  7. The user can see the deployment status, at any time, by going on a specific page.

Uploaded folders size will be from 600Mb to 1Gb. They will contain PNG images, little mp4 movies and xml files.

The web server and all the ftp server will be on the same network, same subnet. No need of extra security for now.
I’m completely new to asynchronous or delayed jobs. The application will have just one or two users: no need to handle a lot of deploy requests at the same time.

How can I accomplish this task? If you need more info please ask in the comments.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:22:25+00:00Added an answer on May 23, 2026 at 5:22 am

    Once you have delayed_job set up, you can set a method to perform in the background while you go about your business. In this case, the deploy method would always be in the background–set by handle_asynchronously.

    class UploadStatus < ActiveRecord::Base
    
      def deploy
         # write your ftp loop here
         # periodically update this model in the db with the status
      end
      handle_asynchronously :deploy
    
    end
    

    Now, you can just call @upload_status.deploy() and it will run in the background.

    You could also write a job method, but I think that it makes more sense in an ActiveRecord class because you will be updating the deploy status.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I need some way to implement an undirected network ( I think this
for a customer, I need to implement the following scenario: User accounts are stored
Looking for some guidance on the best way to implement this scenario: I have
I need an elegant way to implement credit-based purchases for an online store with
we need to implement the following query in such a way that we should
I need to know the easiest way to implement asp.net 3.5 URL routing as
What's the easiest way to implement lan interprocess communication? I need process on machine
Is there a better way to implement a paging solution using dict than this?
Is there a general way to implement part of an application with JavaScript and
What's the best way to implement user controls that require AJAX callbacks? I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.