Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

SRWieZ
Copy link
Member

@SRWieZ SRWieZ commented Apr 6, 2025

Fixes: NativePHP/laravel#542

Getting a Bad File Descriptor Error after the app is resumed from sleep for every scheduler run.

Laravel scheduler improvement:

  • Imported powerMonitor module from electron
  • Added event listeners for suspend and resume events to manage scheduler state
  • Introduced a stopScheduler method to clear and reset the scheduler interval

@SRWieZ SRWieZ marked this pull request as ready for review April 7, 2025 13:52
@SRWieZ
Copy link
Member Author

SRWieZ commented Apr 7, 2025

This seems like it has fixed my problem.

I don't think it's a breaking change. When the computer goes to sleep, the scheduler wasn't run anyway.

@PeteBishwhip PeteBishwhip merged commit 5b7257c into main Apr 7, 2025
@PeteBishwhip PeteBishwhip deleted the fix-issue-542 branch April 7, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheduler emit a javascript error in production build
3 participants