You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

1.

2. Sandbox

"Sandbox" - a directory, in which actor will be run. Before execution of FC2K generated actor, containing user code,  directory will be changed to "sandbox", and after actor finishes, current directory will be switched back to previous value. The name (path) of "sandbox" directory will be created automatically or specified by user in actor configuration dialog. 

Actor will use existing directory or will create it, if directory not exists. All directories created automatically or having user specified relative path will be created under <APP_ROOT> ( $ITMSCRATCH/KEPLER_SANDBOXon the Gateway).

2.1. FC2K settings:

 

"Use sandbox" - enables / disables "sandbox"

"Sandbox" disabled

  • Actor behavior not changed, comparing to previous versions
  • A temporary directory is created  in "Standalone" "Batch" "MPI" or "Debug-standalone" execution modes ( $HOME/public/KEPLEREXECUTION/<actor_name>_<timestamp> )

"Sandbox" enabled:

  • actor uses sandbox
  • a sandbox parameters shown in actor configuration dialog (see next paragraph)

 

2.2. Actor configuration dialog:

  1. Run in sandbox
    • Values: TRUE/FALSE
    • Defines if application could be run in any directory or in specified one ("sandbox")
    • Default value: FALSE
  2. Sandbox lifetime
    •  Values: "Actor execution", "Workflow execution"
    • Defines if sandbox directory should be accessible only for given execution of particular actor ("Actor execution") or during the whole run of the workflow ("Workflow execution")
    • Default value: "Actor execution"
  3. Overwrite sandbox (if exists)
    • Values: TRUE/FALSE
    • Determines if content of checkbox should be cleaned up before
      • Every execution of the actor (if lifetime is set to "Actor execution")
      • First execution of the actor in workflow (if lifetime is set to "Workflow execution")
      • Default value: TRUE
  4. Sandbox directory path
    • Text field
    • If field is empty Default value:  <SANDBOX_ROOT>/<UNIQUE_ACTOR_INSTANCE_NAME> (unique to given instance of an actor, in case if there are several instances of one actor in WF )
    • User specified value may be only relative (to <SANDBOX_ROOT>) - it may contain also system environment variables
  5. Delete sandbox
    • Values: TRUE/FALSE
    • Determines if sandbox dir should be cleared:
      • when actor finishes (in case if lifetime is set to "Actor execution")
      • when workflow finishes in case if lifetime is set to "Workflow execution")
    • Default value: TRUE

 

 

 

 

  • No labels