Skip to content

Conversation

@Vectorial1024
Copy link
Owner

The default task time limit is 30 seconds, just as the PHP default. Time limit can be disabled, but be careful with runaway processes.

We are talking about real time limit. Time spent on sleeping, waiting, etc will also be counted.

@Vectorial1024
Copy link
Owner Author

The next big question is this: how do we correctly and safely set up a real time limit on Unix? It seems not everyone may have timeout (it is the best solution), and sleep might be affected by process signals. What would be acceptable?

@Vectorial1024
Copy link
Owner Author

While we're at it, we are also adding tests to assert the task runner is really being run silently.

@Vectorial1024
Copy link
Owner Author

The original plan was to somehow get the basic test cases passing, then work on edge case test cases, but it turned out, the very intense bug-fixing involved one of the do-it-later edge cases...

@Vectorial1024
Copy link
Owner Author

Vectorial1024 commented Jan 2, 2025

  • Feature
  • DocString
  • Tests
  • README

@Vectorial1024 Vectorial1024 merged commit 88b0aac into master Jan 3, 2025
3 checks passed
@Vectorial1024 Vectorial1024 deleted the expiration branch January 3, 2025 09:10
@Vectorial1024 Vectorial1024 linked an issue Jan 3, 2025 that may be closed by this pull request
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.

Allow setting task time limits

2 participants