Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
¿Cómo interrumpir y terminar programáticamente un proceso de AppScript?

Quiero agregar un stop process() para interrumpir y terminar la secuencia de comandos appScript que se está ejecutando actualmente.

Eliminé todos los disparadores, pero no es suficiente ya que el subproceso principal (que no era disparador) no se ve en la interfaz de usuario de disparadores y, por lo tanto, continúa ejecutándose.

 function stop(){ removeAllTriggers(); exit; } function removeAllTriggers() { try { var triggers = ScriptApp.getProjectTriggers(); for (var i = 0; i < triggers.length; i++) { // delete all triggers ScriptApp.deleteTrigger(triggers[i]); } } catch (e) { SpreadsheetApp.getActiveSpreadsheet().toast('Failed to cleanup triggers', '', TOAST_DISPALY_TIME); }; }

¿Hay alguna forma de ejecutar exit; ?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!