Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
hmmhmmhm
uuid-scheduler
Repository navigation
Code
Issues
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
uuid-scheduler
/
dist
/
index.js
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
48 lines (48 loc) · 1.61 KB
master
Breadcrumbs
uuid-scheduler
/
dist
/
index.js
Copy path
Top
File metadata and controls
Code
Blame
48 lines (48 loc) · 1.61 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
}
)
;
var
Type
=
require
(
"./scheduler/type"
)
;
exports
.
Type
=
Type
;
var
scheduler_1
=
require
(
"./scheduler"
)
;
exports
.
Scheduler
=
scheduler_1
.
Scheduler
;
var
failsafe_1
=
require
(
"./scheduler/failsafe"
)
;
exports
.
FailSafeScheduler
=
failsafe_1
.
FailSafeScheduler
;
var
CommonScheduler
=
failsafe_1
.
FailSafeScheduler
;
exports
.
CommonScheduler
=
CommonScheduler
;
/**
*
@architect
스케쥴러 설계 목표
*
* - [o] <delay> :number
* 작업완료 후 n 초 동안 딜레이 시키는 옵션
*
* - [o] <schedule> :number
* 특정 시간 대에 작업이 작동되게 하는 옵션
*
* - [o] <loop> callback: ({clear}) => boolean
* 동일 작업을 원하는 조건 일때 발생시키는 옵션
* 반환값이 참이면 해당 작업을 다시 pending 시킵니다.
* - [clear] 를 호출해서 더이상 함수가 검사되지 않도록 할 수 있음
*
* - [tasks] Event 를 통해서 마지막 작업이 종료되었을때 작업을 진행합니다.
* - [ ] <tasks.delay>
* - [ ] <tasks.schedule>
* - [ ] <tasks.loop>
* 참이면 모든작업이 끝나면 해당 작업들을 다시 반복
*
* ITickProcessor
* - <schedule> 매 틱마다 schedule 타임스탬프 비교,
* - <loop> 매번 loop 함수 실행시켜서 일치 여부 확인
*
* IScheduleTasks
* - <scheduled>
* - <pending>
* - <running>
* - <finished>
*
*/
/**
*
@todo
* - 동시 실행량 조절 (running limit=1~n)
* - pending running finished 이 아닌 커스텀 Stat
* - LRU maxAge 에 근거한 archived 개념 정의
*/
//# sourceMappingURL=index.js.map
You can’t perform that action at this time.