Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add execution time limit #480

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VincentLanglet
Copy link

No description provided.

@freekmurze
Copy link
Member

Nice, could you maybe also provide a way that user can check if the time limit has been hit. Maybe a function onTimeLimitHit($callable) That passed callable could be called when the time limit has been hit.

Could you also update the docs?

@VincentLanglet
Copy link
Author

Nice, could you maybe also provide a way that user can check if the time limit has been hit. Maybe a function onTimeLimitHit($callable) That passed callable could be called when the time limit has been hit.

I'm not sure to understand the request. What would be used for ?

This might add some complexity especially because you can hit time limit

  • Because of the total time limit
  • Because of the current time limit

I didn't see a onCrawLimitHit() methods...

Or maybe you would prefer that I split

public function reachedCrawlLimits(): bool

into

public function reachedCrawlLimits(): bool
public function reachedTimeLimits(): bool

?

This way these method will be able to be called publicly to know if the limit is reached.

Could you also update the docs?

Sure, I wanted to get a feedback from the Ci, since I didn't succeed running test on my computer...

@freekmurze
Copy link
Member

Yeah, splitting that method seems like a good a idea 👍

@VincentLanglet
Copy link
Author

@freekmurze Ci is not triggered, not sure if it requires an action from you ?

@freekmurze
Copy link
Member

CI running now

@VincentLanglet
Copy link
Author

CI running now

Thanks, tests are green

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.

2 participants