Commit 1618b06
committed
Reorder StartNow block in AddTrigger method
Moved the conditional block that checks `jobTriggerAttribute.StartNow` and calls `opts.StartNow()` to after the job's schedule setup with `opts.ForJob(jobKey)`. This ensures the job's schedule is fully configured before deciding to start the job immediately.1 parent c0d1a85 commit 1618b06
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 59 | | |
64 | 60 | | |
65 | 61 | | |
| |||
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments