Skip to content

Commit

Permalink
Merge pull request #16 from flownative/task/timeout-sitemap-crawler
Browse files Browse the repository at this point in the history
Run sitemap crawler with timeout and in the background
  • Loading branch information
robertlemke authored Jul 10, 2024
2 parents 1d1abfc + dade955 commit eee36c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion root-files/opt/flownative/lib/beach.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ beach_run_custom_startup() {
# @return void
#
beach_run_sitemap_crawler() {
"${SITEMAP_CRAWLER_BASE_PATH}/sitemap-crawler.php"
# Run the sitemap-crawler in a background process and make sure that it does not run
# longer than 10 minutes:
timeout 600 "${SITEMAP_CRAWLER_BASE_PATH}/sitemap-crawler.php" &
}

# ---------------------------------------------------------------------------------------
Expand Down

0 comments on commit eee36c0

Please sign in to comment.