You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2014/01/02 20:47:28 UTC

git commit: updated refs/heads/4.3 to 7c8ef78

Updated Branches:
  refs/heads/4.3 6e5706785 -> 7c8ef7836


CLOUDSTACK-5669: Always retrieve the most recent job result in OutComeImpl


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7c8ef783
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7c8ef783
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7c8ef783

Branch: refs/heads/4.3
Commit: 7c8ef7836c80557d8b050de4a4168b83ab50012a
Parents: 6e57067
Author: Kelven Yang <ke...@gmail.com>
Authored: Thu Jan 2 11:46:54 2014 -0800
Committer: Kelven Yang <ke...@gmail.com>
Committed: Thu Jan 2 11:46:54 2014 -0800

----------------------------------------------------------------------
 .../org/apache/cloudstack/framework/jobs/impl/OutcomeImpl.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7c8ef783/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/OutcomeImpl.java
----------------------------------------------------------------------
diff --git a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/OutcomeImpl.java b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/OutcomeImpl.java
index d957811..23932e3 100644
--- a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/OutcomeImpl.java
+++ b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/OutcomeImpl.java
@@ -50,7 +50,9 @@ public class OutcomeImpl<T> implements Outcome<T> {
 
     @Override
     public AsyncJob getJob() {
-        return _job;
+        // always reload job so that we retrieve the latest job result
+        AsyncJob job = s_jobMgr.getAsyncJob(_job.getId());
+        return job;
     }
 
     @Override