chore(cron): Align cron job identifier in userDataDownloads#39261
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
WalkthroughThe change modifies the cron job scheduling and removal logic in userDataDownloads.ts to use Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #39261 +/- ##
========================================
Coverage 70.85% 70.86%
========================================
Files 3208 3208
Lines 113426 113425 -1
Branches 20530 20506 -24
========================================
+ Hits 80368 80378 +10
+ Misses 31013 31003 -10
+ Partials 2045 2044 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
Aligned the identifier used in
cronJobs.add()andcronJobs.remove()inapps/meteor/server/cron/userDataDownloads.ts.Previously:
"UserDataDownload""Generate download files for user data"This mismatch prevented proper removal of the scheduled job when the Disable Data Exporter Processor setting was enabled.
The fix ensures both operations use the same identifier.
Issue(s)
When the Disable Data Exporter Processor setting is enabled:
This happens because
cronJobs.remove()is called with a different identifier than the one used duringcronJobs.add().Steps to test or reproduce
After applying this fix:
Further comments
Summary by CodeRabbit