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

[Feature Request] Send a signal to Skyvern's running process to stop the agent which sends webhook #1246

Open
devinat1 opened this issue Nov 22, 2024 · 5 comments

Comments

@devinat1
Copy link

I am running some evaluations currently on the Skyvern web agent. I set a 3 minute timeout, in which I kill the port 8000 the Skyvern process is running in. Once this happens, Skyvern doesn't send a webhook. I need the task ID sent in the webhook response, so that I can copy Skyvern's logs over to my project.

What I would like is to send a signal to Skyvern (such as through an API call) letting Skyvern know that it should halt the currently running process and send a webhook response with the details of that task as was sent in the success cases. This will avoid me having to kill the port and have no webhook response.

@suchintan
Copy link
Contributor

Are you able to retrieve the task I'd when you initially start the task?

@devinat1
Copy link
Author

@suchintan No, since its only available in the terminal I am running skyvern from. I would have to extract text from the terminal output and regex parse it, which is a lot of overhead.

Copy link
Contributor

I see — you're not triggering all of the tasks remotely and relying on the webhook to alert the remote server as to the generated task ids?

It might be easier to have the script creating the tasks to just call your webhook w/ a list of task ids at the end. What do you think about that workaround?

@devinat1
Copy link
Author

Yes that's right. The script creating the task ID's is Skyvern's own. I have no way of accessing the task ID's from the outside unless I actually go to the directory which has the name which is the task ID.

Copy link
Contributor

Could you have the script do a webhook call to your server after it's finished running w/ all the task_ids?

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

No branches or pull requests

2 participants