Skip to main content
Question

View Log for sub workspace

  • December 1, 2016
  • 6 replies
  • 144 views

Forum|alt.badge.img

I am trying to see where there might be a log of what occurred in a sub workspace called by workspaceRunner.

I have FME server running workspace (A) and as part of that process workspace (B) is called.

The only detail I can see is that workspace (B) was called successfully, however I would like to see the type of detail showing in the job log for workspace (A)

The Log simply says

90 INFORM 0.0 0.4 Today at 12:27:00 WorkspaceRunner_2: {C:/Program Files/FMEServer/Server/fme/fme} {//Workspace/datagovau - AFS_LIC_.fmw} 2>@1

91 INFORM 0.0 0.4 Today at 13:24:46 WorkspaceRunner_2: Successfully ran workspace \\\\Workspace\\datagovau - AFS_LIC_.fmw

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

tino
Supporter
Forum|alt.badge.img+26
  • Supporter
  • December 1, 2016

Hi,

as far as i know it is not possible to run Workspaces with a WorkspaceRunner on FME Server. With FME 2016 i even get a warning when I try to publish it. You would need a FME Desktop license/installation on your FME Server host. But even then you would have no control over the logfile, because the workspace runs out of the FME Server context.

You want to use the FMEServerJobSubmitter instead of the WorkspaceRunner and publish both workspaces to FME Server.

Then (depends on your exact settings of the JobSubmitter if you want to run it sychronously or asynchronously) the FME Server is fully aware of both jobs.

If you run it synchronously (Wait for job complete = Yes) the whole "second" logfile will be included in the log of your main workspace, if you do not wait the second job gets it's own job id.

Then you can view the log via the Server web UI or retrieve it with FMEServerLogFileRetriever programmatically.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • December 1, 2016

Hi @ashertbrooks, If you are running the jobs on FME Server, I would recommend using the FME Server dedicated transformers ( FMEServerJobSubmitter, FMEServerJobWaiter and FMEServerLogFileRetriever)

Hope this helps.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • December 1, 2016

Hi @ashertbrooks, If you are running the jobs on FME Server, I would recommend using the FME Server dedicated transformers ( FMEServerJobSubmitter, FMEServerJobWaiter and FMEServerLogFileRetriever)

Hope this helps.

Ha just a few seconds too late....

 

 


Forum|alt.badge.img

Hi,

as far as i know it is not possible to run Workspaces with a WorkspaceRunner on FME Server. With FME 2016 i even get a warning when I try to publish it. You would need a FME Desktop license/installation on your FME Server host. But even then you would have no control over the logfile, because the workspace runs out of the FME Server context.

You want to use the FMEServerJobSubmitter instead of the WorkspaceRunner and publish both workspaces to FME Server.

Then (depends on your exact settings of the JobSubmitter if you want to run it sychronously or asynchronously) the FME Server is fully aware of both jobs.

If you run it synchronously (Wait for job complete = Yes) the whole "second" logfile will be included in the log of your main workspace, if you do not wait the second job gets it's own job id.

Then you can view the log via the Server web UI or retrieve it with FMEServerLogFileRetriever programmatically.

I haven't been able to use FMEServerJobSubmitter because the name of the sub workspace being called is dynamic and will change depending on the input to the parent workspace, FMEServerJobSubmitter cannot use parameters to make the workspace being called dynamic.

 

I have been using workspaceRunner with success by calling workspaces that exist on a network path and the log does show it has executed correctly, I would just like to same level of detail that is shown for the parent workspace.

 

 


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • December 1, 2016

If you publish the parameter for the log file in the child workspace, you can create a separate log file for that workspace by defining the location and name in the WorkSpaceRunner.


Forum|alt.badge.img

If you publish the parameter for the log file in the child workspace, you can create a separate log file for that workspace by defining the location and name in the WorkSpaceRunner.

Thanks I will give that a go