Add timeout to remote script run and watcher 12/79012/10
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Thu, 7 Jul 2016 09:41:38 +0000 (11:41 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 7 Oct 2016 15:29:30 +0000 (17:29 +0200)
Change-Id: I6713f6bbfba3aecf6108e01f21de709f3eadd0be
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
tsp/jobs/common_prep_flash_conf.sh
tsp/jobs/watcher.sh

index c2b8f05..75cb5b1 100755 (executable)
@@ -57,7 +57,7 @@ ssh tl-runner "rm -rf \"${WORKDIR_REMOTE}\"; mkdir -p \"${WORKDIR_REMOTE}\""
 scp "${BOOT_IMG}" "${USERSPACE_IMG}" "${USERSPACE_IMG_BMAP}" tl-runner:"${WORKDIR_REMOTE}/"
 
 echo "start remote script"
-ssh tl-runner "TARGET=${TARGET} FAIL_CNT=${FAIL_CNT} WORKDIR_REMOTE=${WORKDIR_REMOTE} sh -s --" \
+ssh tl-runner "TARGET=${TARGET} FAIL_CNT=${FAIL_CNT} WORKDIR_REMOTE=${WORKDIR_REMOTE} timeout 10m sh -s --" \
     < "${TSP_DIR}/scripts/common_prep_flash_conf.sh"
 echo "finish remote script"
 
index 4502c2d..b7160e4 100755 (executable)
@@ -25,9 +25,9 @@ cd "${WS_WATCHER}"
 touch dispatched_urls
 touch timestamp
 touch timestamp_snapshot
-nr=$(tspoll -L PRERELEASE_WATCHER sh -c "ROOT=\"http://download.tizen.org/prerelease/tizen/common/\" \
+nr=$(tspoll -L PRERELEASE_WATCHER timeout 120 sh -c "ROOT=\"http://download.tizen.org/prerelease/tizen/common/\" \
     ${TSP_DIR}/scripts/crawler.py")
 nr=$(tspoll -D $nr -L DOWNLOAD_TRIGGER sh -c "${TSP_DIR}/jobs/trigger_downloads.sh")
-nr=$(tspoll -D $nr -L SNAPSHOT_WATCHER sh -c "ROOT=\"http://download.tizen.org/snapshots/tizen/common/\" \
+nr=$(tspoll -D $nr -L SNAPSHOT_WATCHER timeout 120 sh -c "ROOT=\"http://download.tizen.org/snapshots/tizen/common/\" \
     ${TSP_DIR}/scripts/crawler.py")
 tspoll -D $nr -L DOWNLOAD_TRIGGER sh -c "${TSP_DIR}/jobs/trigger_downloads.sh"