Fixing accounting with null or empty inputs
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor@142180 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f20b59eb47
commit
195e62e474
|
@ -259,7 +259,7 @@ public class OrientDBPersistenceConnector extends
|
|||
String type = ScheduledTask.class.getSimpleName();
|
||||
|
||||
OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<ODocument>(
|
||||
String.format("SELECT * FROM %s WHERE %s = :%s", type)
|
||||
String.format("SELECT * FROM %s", type)
|
||||
// TODO filter for task the instance can run
|
||||
);
|
||||
|
||||
|
|
|
@ -104,15 +104,16 @@ public class RunnablePlugin<T extends Plugin<? extends PluginDeclaration>> imple
|
|||
taskUsageRecord.setHost(LOCALHOST);
|
||||
}
|
||||
|
||||
|
||||
HashMap<String, Serializable> map =
|
||||
new HashMap<String, Serializable>();
|
||||
for(String key : inputs.keySet()){
|
||||
if(inputs.get(key) instanceof Serializable){
|
||||
map.put(key, (Serializable) inputs.get(key));
|
||||
if(inputs!=null && inputs.size()>0){
|
||||
HashMap<String, Serializable> map =
|
||||
new HashMap<String, Serializable>();
|
||||
for(String key : inputs.keySet()){
|
||||
if(inputs.get(key) instanceof Serializable){
|
||||
map.put(key, (Serializable) inputs.get(key));
|
||||
}
|
||||
}
|
||||
taskUsageRecord.setInputParameters(map);
|
||||
}
|
||||
taskUsageRecord.setInputParameters(map);
|
||||
|
||||
|
||||
this.plugin.setUUID(uuid);
|
||||
|
|
Loading…
Reference in New Issue