cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject [03/13] git commit: updated refs/heads/master to 1e2e1ea
Date Thu, 09 Jan 2014 22:33:51 GMT
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/832c8e47
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/832c8e47
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/832c8e47

Branch: refs/heads/master
Commit: 832c8e4728c896f359c9189ae4f49657a495ebe9
Parents: 737a382
Author: Kelven Yang <kelveny@gmail.com>
Authored: Thu Jan 2 11:46:54 2014 -0800
Committer: Kelven Yang <kelveny@gmail.com>
Committed: Thu Jan 9 14:29:12 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/832c8e47/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 7fd28db..bf7d54a 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
@@ -51,7 +51,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