Skip to content

[Fix] 일일 수집기 타임아웃 및 Ollama 캐시 설정 수정#1318

Merged
twoimo merged 1 commit intomainfrom
develop
Mar 19, 2026
Merged

[Fix] 일일 수집기 타임아웃 및 Ollama 캐시 설정 수정#1318
twoimo merged 1 commit intomainfrom
develop

Conversation

@twoimo
Copy link
Owner

@twoimo twoimo commented Mar 19, 2026

개요

GitHub Actions 일일 데이터 수집기의 타임아웃 오류 및 모델 캐시 미적용 수정.

변경 내용

  • .github/workflows/daily-crawler.yml: Ollama 캐시 경로 추가 및 타임아웃 50분 확대
  • backend/run_daily.sh: check_timeout을 45분으로 조정하여 GH 스텝과 정합

테스트

  • 워크플로우 분석을 통한 타임아웃 정합성 검증

@vercel
Copy link

vercel bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tzudong Building Building Preview, Comment Mar 19, 2026 6:21am

@twoimo twoimo merged commit de677e4 into main Mar 19, 2026
2 of 3 checks passed
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 Pull Request는 GitHub Actions에서 실행되는 일일 데이터 수집 워크플로우의 안정성과 효율성을 개선하기 위한 변경 사항을 포함합니다. 장시간 실행되는 작업에서 발생할 수 있는 타임아웃 오류를 방지하기 위해 데이터 수집 스크립트 내의 타임아웃 설정이 GitHub Actions의 워크플로우 타임아웃과 일치하도록 조정되었습니다. 또한, Ollama 모델 캐시 경로를 설정하여 모델 로딩 시간을 단축하고 전체 워크플로우 실행 속도를 향상시키는 것을 목표로 합니다.

Highlights

  • 일일 데이터 수집기 타임아웃 조정: GitHub Actions에서 실행되는 일일 데이터 수집 스크립트 내의 check_timeout 함수 및 해당 함수 호출 지점의 타임아웃 값을 90분에서 45분으로 변경하여 GitHub Actions 스텝 타임아웃(50분)과 정합성을 맞췄습니다.
  • Ollama 캐시 경로 추가: GitHub Actions 워크플로우 파일(.github/workflows/daily-crawler.yml)에 Ollama 캐시 경로를 추가하여 모델 캐시가 적용되도록 설정했습니다.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/daily-crawler.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 GitHub Actions의 일일 데이터 수집기에서 발생하는 타임아웃 오류를 해결하기 위해 타임아웃 시간을 90분에서 45분으로 조정합니다. 이는 GitHub Actions 워크플로우의 타임아웃이 50분으로 설정된 것에 맞춰 5분의 여유를 두는 합리적인 변경입니다. 코드 변경 사항은 타당해 보입니다. 다만, 코드의 유지보수성을 향상시키기 위해 check_timeout 함수 호출 시 하드코딩된 값을 제거하고 함수의 기본값을 사용하도록 하는 것을 제안합니다. 이렇게 하면 향후 타임아웃 값을 변경할 때 한 곳만 수정하면 되어 관리가 더 용이해집니다.


# [PERF] 타임아웃 체크 - Phase 3 진입 전 시간 확인
if ! check_timeout 90; then
if ! check_timeout 45; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

check_timeout 함수의 기본 타임아웃이 45분으로 변경되었으므로, 명시적으로 45를 전달할 필요가 없습니다. 인자 없이 호출하여 기본값을 사용하도록 수정하면 나중에 타임아웃 값을 변경할 때 한 곳만 수정하면 되므로 유지보수성이 향상됩니다.

Suggested change
if ! check_timeout 45; then
if ! check_timeout; then


# [PERF] 타임아웃 체크 - LAAJ 진입 전 시간 확인 (가장 오래 걸리는 단계)
if ! check_timeout 90; then
if ! check_timeout 45; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

앞선 제안과 마찬가지로, 여기서도 check_timeout 함수를 인자 없이 호출하여 기본 타임아웃 값을 사용하도록 하는 것이 좋습니다. 이렇게 하면 코드의 중복을 줄이고 일관성을 유지할 수 있습니다.

Suggested change
if ! check_timeout 45; then
if ! check_timeout; then

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

Successfully merging this pull request may close these issues.

1 participant