refs #772
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:
parent
626b8f2edd
commit
1811e75fb1
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue