Skip to main content
Solved

Write results during parallel processing


jorge_vidinha
Contributor
Forum|alt.badge.img+2

The scenario is :  An httpCaller inside a costum with parellism active to send requests in parallel.

Im trying to find if there is a way to have a featureWriter or any other writing solution inside a parallel costum so that it writes the results/ httpCaller responses as they get processed by each parallel child fmeworker.

As far as i understand FME queues all results of each child fmeworker into an internal buffer and when all its done it outputs results out of the costum to proceed on the pipeline.

Happens that, sometimes parallism crashes with ERROR like below not beeing able to keep track of what was done previously .

I tried to wrap a featureWriter inside the parallel costum transf hopping that it would write the results in realtime during the parallel process into a database, but it looks like it stills writing only at the end of all child processes end sucessfully.

 

im using FME 2018.1 Build 18547 - WIN64

 

 

2019-10-03 10:46:58960.128.3|ERROR |Error in child process '0', exited with code '1'
2019-10-03 10:46:58960.1|  0.0|INFORM|Translation FAILED with 3 error(s) and 0 warning(s) (0 feature(s) output)
2019-10-03 10:46:58960.1|  0.0|INFORM|FME Session Duration: 11 hours 45 minutes 24.2 seconds. (CPU: 862.2s user, 96.5s system)

Best answer by david_r

If you simply want to dump the http reply to a text file, you can maybe use the AttributeFileWriter.

View original
Did this help you find an answer to your question?

2 replies

david_r
Evangelist
  • Best Answer
  • October 3, 2019

If you simply want to dump the http reply to a text file, you can maybe use the AttributeFileWriter.


jorge_vidinha
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • October 4, 2019
david_r wrote:

If you simply want to dump the http reply to a text file, you can maybe use the AttributeFileWriter.

Thanks @david_r , it did help. Altough some times attributeFileWriter skips some lines, i belleive do to some racing between workers appending to the same file without coordination. My assumption.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings