mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Schedule Trigger Node): Change scheduler behaviour for intervals days and hours (#5133)
* 🐛Fix scheduler for intervals days and week * ♻️ Simplify and move recurrency rules outside trigger node * Remove async and promise from recurency rule * Update correctly the Static data when using recurrency Rule * Fix logic when recurrency is activated * 🎨 Remove useless staticData fix(passed by reference) * 🐛 remove duplicted hour cronJob leading to 2 executions * More fixes, handles multiple execution * 🐛 fixing dayOfYear recurency check * 🐛 fix recurency check for hours/days should not equal lastExecution * Add month interval to the scheduler * Fix flawed logic for comparing interval * 🚨 Fix lint issue type --------- Co-authored-by: Marcus <marcus@n8n.io>
This commit is contained in:
6
packages/nodes-base/nodes/Schedule/SchedulerInterface.ts
Normal file
6
packages/nodes-base/nodes/Schedule/SchedulerInterface.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface IRecurencyRule {
|
||||
activated: boolean;
|
||||
index?: number;
|
||||
intervalSize?: number;
|
||||
typeInterval?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user