Skip to content

Fixes "Preparing workflow" hang

Compare
Choose a tag to compare
@idpaterson idpaterson released this 07 Mar 13:56
· 253 commits to master since this release

Fast typing could have caused your Workflow to hang

In some cases when the timing of keystrokes was just right the workflow could be terminated by Alfred while writing a critical file. In this condition, the workflow data directory contained a settings.json.lock file which, since the process that created it had been killed before it could remove the lock file, left any further processes for the workflow hanging.

This problem could affect any Python workflow using alfred-workflow along with Alfred's option to kill the pending workflow process on each keystroke to ensure that script filter results are based on your most recent keystrokes.

Thanks to everyone who helped track this down in issue #90, it was not easy to find!

Changelog

This release contains the following changes:

  • Fixed #90 by updating alfred-workflow to ensure that the process of locking and saving settings.json cannot be interrupted by a SIGTERM from Alfred.