Jump to content

Time limit for script execution?


Recommended Posts

Does Alfred impose a time limit on how long a script can run?

 

One of my scripts is now running for rather a long time (approximately 20 minutes), and though it *does* appear to complete, the next steps (copy to clipboard, send notification) do not.

As far as I know, Alfred always lets a script finish executing…

Could you post the code? More than likely, there's some block of code that's preventing your script from terminating

Cheers :)

Link to comment

As far as I know, Alfred always lets a script finish executing…

Could you post the code? More than likely, there's some block of code that's preventing your script from terminating

Cheers :)

It's rather a long script (part of my reminders workflow) and calls other scripts so I don't want to paste it, but the part that's changed (i.e. since the notification was working) is inside a try block, so even if that's broken somewhere, it shouldn't trip up Alfred.

FWIW I tried running the entire script outside of Alfred and it executes fine.

 

--

Commenting out the long process results in the workflow running normally, as does imposing a hard time limit of 200 seconds on the process (down from the original limit I set of 1000).

Edited by Jack James
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...