Question

Workspacerunner not starting multiple processes

  • 27 January 2020
  • 3 replies
  • 2 views

Badge

I have a workbench which contains a WorkspaceRunner that calls a child workspace. When I set the WorkspaceRunner to wait until the job is complete, it calls the child workspace every time. Everything runs smoothly.

But when I set the WorkspaceRunner to run the child workspace multiple processes of the child workspace at the same time, it just briefly calls the child workspace without starting it. Nothing happens. There is no error and I am not above the maximum of the FME licenses. I am using FME 2019.

Any idea what could cause this behavior?


3 replies

Userlevel 2
Badge +19

Do you see anything out of the ordinary in the parent log when the multiple calls are made in the WorkspaceRunner? An input parameter with a wrong value or something like that?

Badge

Do you see anything out of the ordinary in the parent log when the multiple calls are made in the WorkspaceRunner? An input parameter with a wrong value or something like that?

This is an extract from the logs:

One process:

=============

2020-01-28 09:56:53| 13.6| 0.0|INFORM|WorkspaceRunner: Command to run - `F:/projects/client/_scripts/project.fmw --source_connection db_con<at>postgres --SourceDataset_POSTGIS_5 db_con<at>postgres --DestDataset_POSTGIS db_con<at>postgres --heightgroup_factor 2 --normal_round_factor 1 --max_area 8 --building_group_factor 2 --absolute_difference_between_parts 1.4 --min_x 2598000 --min_y 1193000 --max_x 2599000 --max_y 1194000 --LOG_FILE logs/log_2598500_1193500.log --center_x 2598500 --center_y 1193500'

2020-01-28 09:56:53| 13.6| 0.0|INFORM|WorkspaceRunner: Running FME with command line - `{C:/Program Files/FME-2019/fme} COMMAND_FILE D:/mario/wsr_cm_1580201813881_35336 2>@1'

2020-01-28 09:58:06| 13.8| 0.2|INFORM|WorkspaceRunner: Successfully ran workspace `F:/projects/client/_scripts/project.fmw'

 

Multiple processes:

===================

2020-01-28 10:35:05| 1.6| 0.0|INFORM|WorkspaceRunner: Command to run - `F:/projects/client/_scripts/project.fmw --source_connection db_con<at>postgres --SourceDataset_POSTGIS_5 db_con<at>postgres --DestDataset_POSTGIS db_con<at>postgres --heightgroup_factor 2 --normal_round_factor 1 --max_area 8 --building_group_factor 2 --absolute_difference_between_parts 1.4 --min_x 2599000 --min_y 1194000 --max_x 2600000 --max_y 1195000 --LOG_FILE logs/log_2599500_1194500.log --center_x 2599500 --center_y 1194500'

2020-01-28 10:35:07| 1.7| 0.1|INFORM|WorkspaceRunner: Running FME with command line - `{"C:/Program Files/FME-2019/fme"} COMMAND_FILE {"D:/mario/wsr_cm_1580204105981_22060"} &'

2020-01-28 10:35:07| 1.7| 0.0|INFORM|WorkspaceRunner: Successfully initiated batch run of workspace `F:/projects/client/_scripts/project.fmw'

2020-01-28 10:35:07| 1.7| 0.0|INFORM|WorkspaceRunner: Command to run - `F:/projects/client/_scripts/project.fmw --source_connection db_con<at>postgres --SourceDataset_POSTGIS_5 db_con<at>postgres --DestDataset_POSTGIS db_con<at>postgres --heightgroup_factor 2 --normal_round_factor 1 --max_area 8 --building_group_factor 2 --absolute_difference_between_parts 1.4 --min_x 2599000 --min_y 1210000 --max_x 2600000 --max_y 1211000 --LOG_FILE logs/log_2599500_1210500.log --center_x 2599500 --center_y 1210500'

 

The only difference I notice is this:

One process:

Running FME with command line - `{C:/Program Files/FME-2019/fme} COMMAND_FILE D:/mario/wsr_cm_1580201813881_35336 2>@1'

 

Multiple processes:

Running FME with command line - `{"C:/Program Files/FME-2019/fme"} COMMAND_FILE {"D:/mario/wsr_cm_1580204105981_22060"} &'

 

In the multiple process log, the COMMAND_FILE is in curly brackets and has no "2>@1" at the end.

Not sure what this means?

 

 

 

Userlevel 2
Badge +19

This is an extract from the logs:

One process:

=============

2020-01-28 09:56:53| 13.6| 0.0|INFORM|WorkspaceRunner: Command to run - `F:/projects/client/_scripts/project.fmw --source_connection db_con<at>postgres --SourceDataset_POSTGIS_5 db_con<at>postgres --DestDataset_POSTGIS db_con<at>postgres --heightgroup_factor 2 --normal_round_factor 1 --max_area 8 --building_group_factor 2 --absolute_difference_between_parts 1.4 --min_x 2598000 --min_y 1193000 --max_x 2599000 --max_y 1194000 --LOG_FILE logs/log_2598500_1193500.log --center_x 2598500 --center_y 1193500'

2020-01-28 09:56:53| 13.6| 0.0|INFORM|WorkspaceRunner: Running FME with command line - `{C:/Program Files/FME-2019/fme} COMMAND_FILE D:/mario/wsr_cm_1580201813881_35336 2>@1'

2020-01-28 09:58:06| 13.8| 0.2|INFORM|WorkspaceRunner: Successfully ran workspace `F:/projects/client/_scripts/project.fmw'

 

Multiple processes:

===================

2020-01-28 10:35:05| 1.6| 0.0|INFORM|WorkspaceRunner: Command to run - `F:/projects/client/_scripts/project.fmw --source_connection db_con<at>postgres --SourceDataset_POSTGIS_5 db_con<at>postgres --DestDataset_POSTGIS db_con<at>postgres --heightgroup_factor 2 --normal_round_factor 1 --max_area 8 --building_group_factor 2 --absolute_difference_between_parts 1.4 --min_x 2599000 --min_y 1194000 --max_x 2600000 --max_y 1195000 --LOG_FILE logs/log_2599500_1194500.log --center_x 2599500 --center_y 1194500'

2020-01-28 10:35:07| 1.7| 0.1|INFORM|WorkspaceRunner: Running FME with command line - `{"C:/Program Files/FME-2019/fme"} COMMAND_FILE {"D:/mario/wsr_cm_1580204105981_22060"} &'

2020-01-28 10:35:07| 1.7| 0.0|INFORM|WorkspaceRunner: Successfully initiated batch run of workspace `F:/projects/client/_scripts/project.fmw'

2020-01-28 10:35:07| 1.7| 0.0|INFORM|WorkspaceRunner: Command to run - `F:/projects/client/_scripts/project.fmw --source_connection db_con<at>postgres --SourceDataset_POSTGIS_5 db_con<at>postgres --DestDataset_POSTGIS db_con<at>postgres --heightgroup_factor 2 --normal_round_factor 1 --max_area 8 --building_group_factor 2 --absolute_difference_between_parts 1.4 --min_x 2599000 --min_y 1210000 --max_x 2600000 --max_y 1211000 --LOG_FILE logs/log_2599500_1210500.log --center_x 2599500 --center_y 1210500'

 

The only difference I notice is this:

One process:

Running FME with command line - `{C:/Program Files/FME-2019/fme} COMMAND_FILE D:/mario/wsr_cm_1580201813881_35336 2>@1'

 

Multiple processes:

Running FME with command line - `{"C:/Program Files/FME-2019/fme"} COMMAND_FILE {"D:/mario/wsr_cm_1580204105981_22060"} &'

 

In the multiple process log, the COMMAND_FILE is in curly brackets and has no "2>@1" at the end.

Not sure what this means?

 

 

 

I don't see anything strange. No idea about the differences you have pointed out. Safe could help you there better.

 

 

One question: How do you check that the child workspace starts only briefly? Is there any FME.EXE process running in the Task Manager when the parent workspace ends?

Reply