currentDashUrl

currentDashUrl() -> text, pure function

Produces an URL which, when visited, redirects to the dashboard of the run in which it was executed.

schema '/logs.ion' with 
  Operation : text
  Url : text

read '/logs.ion' as Logs 

// Append the current operation to the logs
table Logs max 1m = with 
  [| Logs.Operation as Operation, Logs.Url as Url  |]
  [| "Pre-processing",            currentDashUrl() |] 

write Logs as '/logs.ion' 

Cannot be called from modules or from user-defined functions, or on try.lokad.com.

The main use case for this function is to write its output to a file that is then loaded from another script so that it can produce a link to this specific run.

See also

User Contributed Notes
0 notes + add a note