add_requests with a token that has an expiry time #1967
Unanswered
DoctorEvil92
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hello @DoctorEvil92 and thanks for your interest in Crawlee! Just to be sure, what kind of token are you talking about? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions