cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject git commit: updated refs/heads/4.3 to 7c8ef78
Date Thu, 02 Jan 2014 19:47:28 GMT
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 <kelveny@gmail.com>
Authored: Thu Jan 2 11:46:54 2014 -0800
Committer: Kelven Yang <kelveny@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


Mime
View raw message