Browse files

Revert "Run Pyon spawn_process calls in a greenlet"

This reverts commit bb4ba9f.
  • Loading branch information...
1 parent 085f367 commit 6c2433469050a40d61271a1ea277e223f459c45f @oldpatricka oldpatricka committed Oct 10, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 pidantic/pyon/pyon.py
View
10 pidantic/pyon/pyon.py
@@ -6,14 +6,12 @@
from imp import load_source
from urllib import urlretrieve
from uuid import uuid4
-from gevent import spawn
from eeagent.util import unmake_id
from pidantic.pyon.persistence import PyonDataObject, PyonProcDataObject
from pidantic.pidantic_exceptions import PIDanticUsageException, PIDanticExecutionException
-
def proc_manager_lock(func):
def call(self, *args, **kwargs):
@@ -91,14 +89,8 @@ def create_process_db(self, **kwargs):
return process_object
@proc_manager_lock
- def run_process(self, process_object, async=True):
-
- if async:
- spawn(self._run_process, process_object)
- else:
- return self._run_process(process_object)
+ def run_process(self, process_object):
- def _run_process(self, process_object):
try:
config = yaml.load(process_object.config)
except AttributeError:

0 comments on commit 6c24334

Please sign in to comment.