Giter Site home page Giter Site logo

schedulercomment's Introduction

댓글 스케줄러

Application runner를 통한 유저, 코멘트 데이터가 제공됩니다.

updateNicknames

10분마다 실행되는 작업으로 댓글에 기록된 user_id를 기반으로 댓글의 nickname 업데이트합니다.
JPA 연관이 되어있지 않아 사용자가 탈퇴하더라도 댓글의 nickname은 마지막 상태로 유지됩니다.

@Scheduled(cron = "0 0/10 * * * *")
fun updateNicknames() {
    commentService.updateNicknames()
}

deleteOldSoftDeletedComments

매일 오전 9시에 실행되는 작업으로 Soft delete된 댓글 중 일정 기간이 지난 댓글을 삭제합니다.

@Scheduled(cron = "0 0 9 * * *")
fun deleteOldSoftDeletedComments() {
    commentService.deleteOldSoftDeletedComments()
}

schedulercomment's People

Contributors

mobzzzzz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.