Commit 04b6b91
fix: resolve scheduler errors and reorganize type definitions
## Scheduler Fixes
- Fixed "TypeError: this.processDueTasks is not a function" in task runner
- Resolved ArangoDB task execution context issues by implementing inline processing
- Enhanced task registration cleanup to prevent duplicate scheduler tasks
- Improved error handling with proper logging and graceful degradation
- Simplified watchdog implementation to avoid re-registration loops
## Type System Improvements
- Moved types/ folder from root to src/types/ for better project organization
- Updated jsconfig.json files to include TypeScript declaration files
- Added @types/* path mapping for cleaner type imports
- Enhanced IDE support with proper type resolution configuration
- Updated type documentation with corrected import paths
## Technical Details
- Scheduler now uses inline task processing to avoid context binding issues
- Comprehensive cleanup of orphaned task registrations on service restart
- Improved type discovery for better IntelliSense and autocomplete support
- Maintained backward compatibility while fixing underlying implementation bugs
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 8370277 commit 04b6b91
File tree
5 files changed
+56
-21
lines changed- src
- builder
- scheduler
- types
5 files changed
+56
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | | - | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | | - | |
205 | | - | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 209 | + | |
212 | 210 | | |
213 | 211 | | |
214 | 212 | | |
215 | 213 | | |
216 | 214 | | |
217 | 215 | | |
218 | 216 | | |
219 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
220 | 244 | | |
221 | 245 | | |
222 | | - | |
223 | | - | |
| 246 | + | |
| 247 | + | |
224 | 248 | | |
| 249 | + | |
| 250 | + | |
225 | 251 | | |
226 | 252 | | |
227 | 253 | | |
| |||
253 | 279 | | |
254 | 280 | | |
255 | 281 | | |
| 282 | + | |
256 | 283 | | |
257 | | - | |
258 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
259 | 287 | | |
260 | 288 | | |
261 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
File renamed without changes.
0 commit comments