Support Scheduled Task take in charge from Orphaned RIs


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

View File

@ -348,8 +348,10 @@ public class OrientDBPersistenceConnector extends
}
RunOn runOn = ScheduledTask.generateRunOn();
String json = mapper.writeValueAsString(runOn);
doc.field(RUN_ON, json);
ODocument runOnDocument = new ODocument();
runOnDocument.fromJSON(mapper.writeValueAsString(runOn));
doc.field(RUN_ON, runOnDocument);
timestamp = Calendar.getInstance().getTimeInMillis();
doc.field(TIMESTAMP, timestamp);