feat(schedule): add schedule:bootstrap and minute-precise automation runs

Install per-module schedule:run cron from artisan, store sms/in_app send minutes, and match scheduled triggers at exact HH:mm Tehran time.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-24 22:13:06 +03:30
co-authored by Cursor
parent 9bb0fa3a1d
commit 1c8ab4b725
7 changed files with 214 additions and 17 deletions
+4
View File
@@ -17,7 +17,9 @@ class Automation extends Model
'starts_at',
'ends_at',
'sms_send_hour',
'sms_send_minute',
'in_app_send_hour',
'in_app_send_minute',
'trigger_type',
'trigger_config',
'last_anchor_price',
@@ -44,7 +46,9 @@ class Automation extends Model
'channels' => 'array',
'last_anchor_price' => 'float',
'sms_send_hour' => 'integer',
'sms_send_minute' => 'integer',
'in_app_send_hour' => 'integer',
'in_app_send_minute' => 'integer',
'cooldown_hours' => 'integer',
'max_sends' => 'integer',
'sent_count' => 'integer',