Fix for scheduler#251
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughRemoved passing Changes
Sequence Diagram(s)sequenceDiagram
participant Scheduler as SchedulerManager
participant JobSvc as ScheduledJobService
participant DynSvc as DynamicQueryService
participant Plugin as DatasourcePlugin
participant Storage as CloudStorage
participant Mail as EmailService
Scheduler->>JobSvc: trigger email dynamic-query job (job_row, timezone)
JobSvc->>JobSvc: resolve runtime params (job_timezone)
JobSvc->>DynSvc: get_dynamic_yaml_query(query_id)
DynSvc-->>JobSvc: yaml_query (or empty -> error)
alt empty query set
JobSvc-->>Scheduler: raise ValueError (fail job)
else query present
JobSvc->>Plugin: build plugin with datasource_config
Plugin->>Plugin: execute query -> rows
Plugin-->>JobSvc: result {status, result}
JobSvc->>JobSvc: validate structure (status == "success", list rows)
JobSvc->>Storage: upload CSV report
Storage-->>JobSvc: presigned_url (7d)
JobSvc->>Mail: send email with presigned_url
Mail-->>Scheduler: send status
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* Fix for scheduler * Fix for service auth roleid * Fix for datasource init * fix for scheduled querries * fix for scheduled querries for sending csv link as email * fix for dynamic query * fix for dynamic query * fix for scheduled queries and its UI * fix for scheduled job to send as CSV * Making export rate limit to 5 secs
Summary by CodeRabbit
Bug Fixes
Improvements
Refactor