Support Scheduled Task take in charge from Orphaned RIs


git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor@142463 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-02-10 16:27:13 +00:00
parent 626b8f2edd
commit 1811e75fb1
1 changed files with 2 additions and 2 deletions

View File

@ -401,8 +401,8 @@ public class OrientDBPersistenceConnector extends
ODocument doc = getScheduledTaskDocument(db, uuid);
long timestamp = doc.field(TIMESTAMP);
if (timestamp != scheduledTask.getTimestamp()) {
Long timestamp = doc.field(TIMESTAMP);
if (timestamp!=null && timestamp != scheduledTask.getTimestamp()) {
throw new SchedulePersistenceException(
"The ScheduledTask has been changed.");
}