WebFaction
Community site: login faq

Hello, I am implementing a feature my school project and I was wondering what was the optimal solution to it. The feature itself consists of: starting a process, stop a process, and checking if the process is running...all these done in a non-blocking way with django. I am trying to avoid stuff like RabbitMQ, etc. I was thinking maybe of using threading or cron.

Any comments or suggestions are the most welcomed. Thanks.

Sorry if this question is a repost, all my searches on queues, asynchronous did not return anything.

asked 02 Feb '12, 13:25

Vannen
1122
accept rate: 0%


Django is a python framework. In python the way to call external resources is with subprocess, which is synchronous. To execute an asynchronous external process in python you have to start the process and leave its execution up to something else, like a shell script or a task scheduler.

permanent link

answered 02 Feb '12, 17:21

johns
5.4k412
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×910
×4
×2
×1

question asked: 02 Feb '12, 13:25

question was seen: 3,764 times

last updated: 02 Feb '12, 17:21

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM