You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for a way to know if a self-hosted agent is actively running a job or not, locally on the machine and not via polling the Azure DevOps API.
Is there any sort of event-based hook that I can utilize from the agent that will execute something when a job starts/ends? Or is there anything I can monitor on the filesystem that would indicate whether the agent is actively running a job or not?
Thank you in advance
Versions
Azure DevOps version 3.242.1 - Windows Server 2022
Azure DevOps version 3.240.1 - Ubuntu 22.04
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Operation system
Windows Server 2022, Ubuntu 22.04
Version controll system
Git
Azure DevOps Server Version (if applicable)
No response
The text was updated successfully, but these errors were encountered:
I just wanted to make sure there wasn't some built-in feature of the agent itself that I could leverage, that would run a custom script when a job starts for example.
But what you suggested will work for me, I can monitor for that process. Thank you for the idea!
Describe your question
Hi there,
I'm looking for a way to know if a self-hosted agent is actively running a job or not, locally on the machine and not via polling the Azure DevOps API.
Is there any sort of event-based hook that I can utilize from the agent that will execute something when a job starts/ends? Or is there anything I can monitor on the filesystem that would indicate whether the agent is actively running a job or not?
Thank you in advance
Versions
Azure DevOps version 3.242.1 - Windows Server 2022
Azure DevOps version 3.240.1 - Ubuntu 22.04
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Operation system
Windows Server 2022, Ubuntu 22.04
Version controll system
Git
Azure DevOps Server Version (if applicable)
No response
The text was updated successfully, but these errors were encountered: