Commit 5888beb
Reduce default job lock expiration from 24h to 2h (#17)
The job scheduler uses expireLockTime to detect and recover from
stale locks caused by server crashes during job execution.
Previous behavior: Default of 1440 minutes (24 hours) meant jobs
could be blocked for an entire day if a server crashed mid-execution.
New behavior: Default reduced to 120 minutes (2 hours), which:
- Allows recovery from stale locks much faster
- Still provides enough time for most long-running jobs
- Jobs that need more time can set expireLockTime explicitly
Updated ServiceJob entity documentation to reflect new default.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 87872d9 commit 5888beb
2 files changed
Lines changed: 6 additions & 3 deletions
File tree
- framework
- entity
- src/main/groovy/org/moqui/impl/service
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | | - | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
0 commit comments