Hi all! What's the best way to test the liveness/responsiveness of a Prodigy webserver? I would like to start Prodigy servers on request and redirect a user to "their" server once it is up and ready to go.
Hi! One simple option would be to just keep making GET
requests to {host}:{port}/project
, which is the endpoint that returns the Prodigy config. Once that's available and you get a response, the server is live (Plus, you also get all info about the current Prodigy instance and annotation config, so you could use that to show the user a more specific message, like "Started Prodigy v{version} with recipe {recipe_name} and {len(labels)} labels", or something like that)
1 Like
That's a great idea, thank you!
1 Like