-
Notifications
You must be signed in to change notification settings - Fork 7
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
enhancement: Info Request #16
Comments
Hey, not sure I understand what you want. |
@ziflex, Yep, sorry for the lack of precision. Some providers will charge per request to the worker, the number of requests and its execution time etc. If we want to retrieve the information for each triggered scrap, we go to two requests per scrap ( POST / & GET /info ) My idea was to include a new parameter on the post request.
and if boolean is true return something like
|
Hmm, I do not like the idea of putting payload from another endpoint. |
Hmm, I understand, and you are right. All the information, the goal would be to have the scrap and information about its execution in a single request (ip / chrome / ferret). Perhaps a more straightforward solution would be to add a route running the other two? something like POST / debug (This is what I wanted PR to separate the use-case well but too little knowledge of GO to do it) |
We could add this information to response headers. What exactly do you need from /info? Everything? |
hey, yep 🙂 |
Hey @ziflex ,
Sometimes we are billed per request on the hosting of an API;
it would be possible to have an option on the post / to retrieve the info in the process?
I have a quick look for PR .. I have to dig a little GO before 😅
It's my last step to align all my containers on your worker and trash my fork 🤞
The text was updated successfully, but these errors were encountered: