microsoft / azdo-databricks

A set of Build and Release tasks for Building, Deploying and Testing Databricks notebooks
MIT License
25 stars 32 forks source link

Waiting Task getting timedout even on self hosted agents #70

Open swatitaneja opened 11 months ago

swatitaneja commented 11 months ago

I had some data bricks notebooks which takes more than one hour for execution . Earlier i was running them on Mircosoft hosted agents. But since the timeouts are as follow

So i switched to Self hosted agents to avoid timeout . But still the issue did not resolve.

To verify , if the issue is with agent or with the task , i created a task with bash script for infinite loop , like below

!/bin/bash

TimeStart=$(date +"%Y-%m-%d %H:%M:%S") TimeEnd=$(date -d "$TimeStart 2 hours" +"%Y-%m-%d %H:%M:%S") echo "Start Time: $TimeStart" echo "End Time: $TimeEnd"

while true; do TimeNow=$(date +"%Y-%m-%d %H:%M:%S")

if [ "$TimeNow" \> "$TimeEnd" ]; then
    echo "It's time to finish."
    break
else
    echo "Not done yet, it's only $TimeNow"
fi
sleep 10

done

This task ran for more 3 hours before i canceled it . which mean , the task for databricks Wait for Notebook execution does not respect the timeout policy . Can you please help me set a higher timeout for this task so that i can continue to use this task and ADO for my execution