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

Fix: 공지사항 크롤링하는 시간 변경 #107

Merged
merged 2 commits into from
Sep 24, 2023
Merged

Fix: 공지사항 크롤링하는 시간 변경 #107

merged 2 commits into from
Sep 24, 2023

Conversation

pp449
Copy link
Member

@pp449 pp449 commented Sep 21, 2023

🤠 개요

💫 설명

📷 스크린샷 (Optional)

@pp449 pp449 added the 🛠 fix label Sep 21, 2023
@pp449 pp449 self-assigned this Sep 21, 2023
Copy link
Collaborator

@hwinkr hwinkr left a comment

Choose a reason for hiding this comment

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

✅ 0-9로 설정해두면 1시간 마다 크롤링 하는걸까요?

@pp449
Copy link
Member Author

pp449 commented Sep 24, 2023

✅ 0-9로 설정해두면 1시간 마다 크롤링 하는걸까요?



| | | | |
| | | | ----- Day of the week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of the month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)

으로 되어있는데 0-9는 0시부터 9시까지 매 시간마다 동작하도록 설정되어 있어요
원래는 9-18로 설정해야하는데 현재 서버 시간이 서울 표준시보다 9시간정도 느리게 설정되어 있어 서 9시간을 뺀 0-9로 설정했어요

추가적으로 평일에만 동작하도록 추가했어요

0 0-9 * * 1-5
1-5: 매주 월-금 동작
0-9: 0시부터 9시까지
0: 0분에 동작

@pp449 pp449 merged commit b40b375 into dev Sep 24, 2023
1 check passed
@pp449 pp449 deleted the fix/#106 branch September 24, 2023 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix: node-cron 시간 변경
2 participants