From edf6fe3431dce1907f5f24d1bdab994b580d6dad Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 26 Mar 2014 13:20:52 -0500 Subject: [PATCH] Make async jid's unique per host The jid will now also contain the PID of the async_wrapper process, and can each unique jid from each host is tracked rather than just relying on one global jid per task. Fixes #5582 --- internal/async_wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/async_wrapper b/internal/async_wrapper index 278280ef1a8..2bc2dc21823 100644 --- a/internal/async_wrapper +++ b/internal/async_wrapper @@ -72,7 +72,7 @@ if len(sys.argv) < 3: }) sys.exit(1) -jid = sys.argv[1] +jid = "%s.%d" % (sys.argv[1], os.getpid()) time_limit = sys.argv[2] wrapped_module = sys.argv[3] argsfile = sys.argv[4]