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

  • Home
  • SEARCH
  • 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 7173889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:55:09+00:00 2026-05-28T15:55:09+00:00

So I have a background procss that I need to expose/control as a web

  • 0

So I have a background procss that I need to expose/control as a web service. I have wrapped the process to be able to accept commands via a pipe, but now am trying to find out how to control it.

Requirements are as follows:

  1. Need to be able to start the process via the web
  2. Need to be able to send cmds
  3. Need to be able to return results from cmds
  4. Process once started is alive until killed

I think the main question is how do I get django to own the process? Own in the sense, keep a valid save the pipe for future communication with the background process. Right now its something along the lines (just an example):

if __name__ == '__main__':
 to_process_pipe, process_pipe = Pipe()
 node = PFacade(process_pipe)
 p.start()

 to_process_pipe.send(['connect'])
 print to_process_pipe.recv()

 p.killed = True
 p.join()

I think I need a better way to be able to communicate, bc I am not sure how I could store the Pipe in DJango.


And please, if you are going to respond with use Celery, please give me a good explination of how.

  • 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-28T15:55:10+00:00Added an answer on May 28, 2026 at 3:55 pm

    My final solution was to write a custom “mailbox” based on pidbox.Mailbox. Their implementation was horribly broken but the algorithm was solid.

    I basically stood up a REST API hosted via django and then had that rest api send a message to a AMQP Queue(QPID implementation).

    I then had a process that sits, monitors the queues, and passess along any commands as they came in.

    It worked well and was pretty awesome when it came together.

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

Sidebar

Related Questions

We have a database that is updated via a background process. We are using
I am writing a Web app that will need to run a background process
I have some code that starts a background process for search in my WPF
I have a background thread that handles communication with an external service. Each time
I have a background process that i want to regularly maintain the state of
I need to program a Background process that would periodically buffer certain types of
Background I have a few scripts that run as part of my build process
I'm writing a background service that needs to process a series of jobs, stored
Background: I have a post-build process that copies a file to another location. It
I have a process that I need to run almost permanently. I've being using

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.