Skip to main content
Archived

Add toggle control enabling the startup/shutdown python scripting

Related products:FME Form

samisnunu
Contributor

Add a check in the Navigator window under Scripting to allow Enable or Disable the Startup or Shutdown scripting to run.

During debugging, I frequently need to disable the workspace to run the Startup Python scripting. either I Cut and paste to Notepad, or I have to o comment out all script lines just for the sake of testing.

i can add a private parameter Type Choice "Debug" with values Yes/No, but I guess it'll be more handy if it is set by default in the Navigator window for any workspace.

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

5 replies

rchoucroun
Contributor
Forum|alt.badge.img+10
  • Contributor
  • October 27, 2020

This really needs to be implemented. Particularly since feature caching has been introduced. If I run my script to a particular transformer, it runs my python startup and shutdown script. If I then run to the next transformer (using cached features) it runs my startup and shutdown scripts again. Some of these scripts are not trivial, the startup script deletes a geometric network, the shutdown script turns off versioning on the datasets, rebuilds the geometric network and turns versioning back on again. This doesn't need to occur every time I want to follow the outputs of each transformer. Please enable a switch to ignore startup/shutdown scripts when running a translation.

 

As @samisnunu suggested, it could be a toggle in the navigator window, or possibly, a pop up when executing along with the published parameters pop up.


ecthelion
Contributor
Forum|alt.badge.img+14
  • Contributor
  • December 7, 2020

Can you just create a start.txt and/or stop.txt file and populate it with "Debug" when you want to do testing and set it to something else otherwise? Then at the top of your python you could do:

import fme, fmeobjects

f = open("start.txt", "r")

if (f.readline() == "Debug"):

  print("***** in Debug Mode, skipping normal startup *****")

else:  

  print("****** Running usual startup *****")

# USUAL STARTUP ROUTINE HERE


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • January 20, 2021

Another vote for a much needed functionality.


martinkoch
Supporter
Forum|alt.badge.img+18
  • Supporter
  • January 21, 2021

I only feel the situation already.... Who in the team deployed the workspace with the toggle still off???

 

Just like 'redirect to inspector'...


LizAtSafe
Safer
Forum|alt.badge.img+15
  • Safer
  • February 10, 2024
Updated idea statusGathering InterestArchived
Idea merged into:

All the votes from this idea have been transferred.

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