@samet-it/be-scheduler-common
v1.0.3
Published
Scheduler common component
Readme
Samet IT : Scheduler Common
ts backend component
__ __ __
__________/ /_ ___ ____/ __ __/ ___ _____ _________ ____ ___ ____ ___ ____ ____
/ ___/ ___/ __ \/ _ \/ __ / / / / / _ \/ ___/ / ___/ __ \/ __ `__ \/ __ `__ \/ __ \/ __ \
(__ / /__/ / / / __/ /_/ / /_/ / / __/ / / /__/ /_/ / / / / / / / / / / / /_/ / / / /
/____/\___/_/ /_/\___/\__,_/\__,_/_/\___/_/ \___/\____/_/ /_/ /_/_/ /_/ /_/\____/_/ /_/ EN: Manages cron jobs, schedulers and tasks in the projectTR: Projedeki zaman bazlı görevleri yönetir
Prerequisite
- Help
- 1 - Install Git
- 2 - Build Up a Git Connection
- 3 - Install Node/NPM
- 4 - Create Project Folder
- 5 - Bind Projects Folder to Git
Usage
EN: How to add into your project?TR: Projene nasıl eklersin?
npm i @samet-it/be-scheduler-commonEnvironments
| Name | Type | Default | Required | Secret | Description |
|-------------------------|----------|---------------|----------|--------|------------------------------------------|
| SCH_STARTED_TASKS | string[] | | | | Class names of tasks which should be run |
| SCH_DEFAULT_PATTERN | string | */3 * * * * | | | Default cron pattern |
| SCH_DEFAULT_THRESHOLD | number | 3,600,000 | | | Default threshold as max run time |
Contents
- schedulerCommonConfig : config
- schedulerPool : pool, all task are registered to it
- AbstractScheduler : abstract scheduler
Development
You can start to develop on it
Step 1
Step 2
EN: Clone the projectTR: Projeyi bilgisayarına çek
git clone https://github.com/samet-digital/be-scheduler-common.git -b developmentDependencies
@leyyo/*: leyyo utilities@nestjs/*: nestjs frameworknode-cron: cron utility
Commands
Standards
+ language: TS
+ lint: eslint
+ inspections: intelli-j code inspections
+ ddd: domain driven development
+ edd: exception driven development
! tdd: test driven development
+ ldd: log driven development
+ ddd: document driven developmentHistory
| Date | Developer | Info | Ticket | |------------|----------------|--------------|----------------| | 2025-10-17 | Mustafa Yelmer | Created | ~~none~~ | | 2026-01-11 | Mustafa Yelmer | Refactored | ~~none~~ |
