Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 운영계 배치 트리거 설정 #2

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/healthcheck-dev-batch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
{
attachments: [{
color: 'danger',
text: `${process.env.AS_WORKFLOW}\n사장님 API 서버 Health Check가 실패하였습니다`
text: `${process.env.AS_WORKFLOW}\n배치 API Health Check가 실패하였습니다`
}]
}
env:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/healthcheck-prod-batch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "[운영] 헬스체크 - Batch"

on:
schedule:
- cron: "*/5 * * * *"
workflow_dispatch:

jobs:
healthcheck:
runs-on: ubuntu-latest
steps:
- name: Batch Health Check
uses: jtalk/url-health-check-action@v3
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/ping
max-attempts: 3
retry-delay: 1s

- name: action-slack
if: failure()
uses: 8398a7/action-slack@v3
with:
status: custom
fields: workflow
custom_payload: |
{
attachments: [{
color: 'danger',
text: `${process.env.AS_WORKFLOW}\n배치 API Health Check가 실패하였습니다`
}]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEV }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[개발] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치 (dry-run)"

on:
schedule:
- cron: "30 11 */3 * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/userStoreAutoCleanTargetFindJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "[개발] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치"

on:
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/userStoreAutoCleanerJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
16 changes: 16 additions & 0 deletions .github/workflows/job-trigger-dev-correct-favorite-count.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "[개발] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 보정"

on:
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/correctFavoriteStoresCountJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "[개발] 잡 트리거 - 유저 가게 평균 리뷰 점수 보정 배치"

on:
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/correctUserStoreAverageRatingJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
4 changes: 2 additions & 2 deletions .github/workflows/job-trigger-dev-push-boss-open-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: "[개발] 잡 트리거 - 사장님 서비스 장기 영업 가게 푸시

on:
schedule:
- cron: "0 0,12 * * *"
- cron: "0 12 * * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: 사장님 서비스 장기 영업 가게 푸시 발송 트리거
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/bossOpenStorePushJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: 사장님 서비스 일일 통계 배치 트리거
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/bossStatisticsJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: 유저 서비스 일일 통계 배치 트리거
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/dailyStaticsJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: "[개발] 잡 트리거 - 사장님 가게 피드백 카운트 갯수 검

on:
schedule:
- cron: "0 11 */3 * *"
- cron: "10 11 */3 * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: 사장님 가게 피드백 카운트 갯수 검증 배치 트리거
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/validateBossStoreFeedbackCountJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: "[개발] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 검증 배

on:
schedule:
- cron: "0 11 */3 * *"
- cron: "20 11 */3 * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: 즐겨찾기 가게 카운트 갯수 검증 배치 트리거
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/validationFavoriteStoresCountJob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: 유저 가게 평균 리뷰 점수 배치 트리거
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_DEV }}/batch/job/execute/validateUserStoreAverageRatingJob
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[운영] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치 (dry-run)"

on:
schedule:
- cron: "30 11 */3 * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/userStoreAutoCleanTargetFindJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_PROD }}
contentType: application/json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "[운영] 잡 트리거 - 활동 기반으로 유저 가게를 삭제하는 배치"

on:
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/userStoreAutoCleanerJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_PROD }}
contentType: application/json
16 changes: 16 additions & 0 deletions .github/workflows/job-trigger-prod-correct-favorite-count.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "[운영] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 보정"

on:
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/correctFavoriteStoresCountJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_PROD }}
contentType: application/json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "[운영] 잡 트리거 - 유저 가게 평균 리뷰 점수 보정 배치"

on:
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/correctUserStoreAverageRatingJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_PROD }}
contentType: application/json
18 changes: 18 additions & 0 deletions .github/workflows/job-trigger-prod-push-boss-open-store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[개발] 잡 트리거 - 사장님 서비스 장기 영업 가게 푸시 발송"

on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/bossOpenStorePushJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
18 changes: 18 additions & 0 deletions .github/workflows/job-trigger-prod-statistics-boss-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[운영] 잡 트리거 - 사장님 서비스 일일 통계 배치"

on:
schedule:
- cron: "2 15 * * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/bossStatisticsJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
18 changes: 18 additions & 0 deletions .github/workflows/job-trigger-prod-statistics-user-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[운영] 잡 트리거 - 유저 서비스 일일 통계 배치"

on:
schedule:
- cron: "0 15 * * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/dailyStaticsJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[운영] 잡 트리거 - 사장님 가게 피드백 카운트 갯수 검증 배치"

on:
schedule:
- cron: "10 11 */3 * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/validateBossStoreFeedbackCountJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
18 changes: 18 additions & 0 deletions .github/workflows/job-trigger-prod-validate-favorite-count.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[운영] 잡 트리거 - 즐겨찾기 가게 카운트 갯수 검증 배치"

on:
schedule:
- cron: "20 11 */3 * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/validationFavoriteStoresCountJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "[운영] 잡 트리거 - 유저 가게 평균 리뷰 점수 검증 배치"

on:
schedule:
- cron: "0 11 */3 * *"
workflow_dispatch:

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: trigger
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.BASE_URI_PROD }}/batch/job/execute/validateUserStoreAverageRatingJob
method: POST
bearerToken: ${{ secrets.BATCH_TOKEN_DEV }}
contentType: application/json