add_requests with a token that has an expiry time #1967
Answered
by
janbuchar
DoctorEvil92
asked this question in
Q&A
|
I would use add_requests to add a lot of requests to be scheduled, these requests would run for a while. If I schedule each of these requests with a token that has a 30 minute expiry time, at some point all the requests will start failing and the token has to be renewed. My idea was this: once the request fails, get a new token value and use send_request to retry the request. But then I also need to send this token value to every other request in the queue somehow, I don't know if that is possible? |
Answered by
janbuchar
Jun 16, 2026
Replies: 1 comment 8 replies
|
Hello @DoctorEvil92 and thanks for your interest in Crawlee! Just to be sure, what kind of token are you talking about? |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, yes, the pre-navigation hook should work well for this purpose.