Workflow using importerApi is stuck in WAITING state
Greetings,
We have a workflow which reads a few json files and uses the importerApi to import the assets.
We are in progress to migrate to Collibra Cloud, this workflow works fine in the on-premise environment. However it gets into a WAITING state when executed in DIC.
Let me share the code snippet.
File datafile = new File(“importObsoleteProdProjects.json”);
datafile.write(json);
def job2 = importerApi.importJsonInJob(ImportJsonInJobRequest.builder()
.file(datafile)
.fileName(“importObsoleteProdProjects.json”)
.build());
LOGGER.info("testing job print " + job2 + " " +job2.getState());
while(!(jobApi.getJob(job2.getId()).getState().toString().equals(“COMPLETED”) || jobApi.getJob(job2.getId()).getState().toString().equals(“ERROR”))){
sleep(1000);
LOGGER.info("waiting for job to finish " + jobApi.getJob(job2.getId()).getState());
}
The issue is - in the dgc.log the log prints - com.db.dgm.workflow - waiting for job to finish WAITING
Even the Activities tab (in Settings)does not show anything. Am I missing any configuration in the Collibra console.
Any help is appreciated.
Thanks and Regards
Saptarshi Paul
andrviana1
·2 years ago · EditedHey Saptarshi Paul, did you find the solution for this?