Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cron module structure #4933

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Fix cron module structure #4933

merged 4 commits into from
Apr 12, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Apr 11, 2024

This PR introduces a new folder structure for business modules.
Cron commands and jobs are now stored within the same module/folder at the root of the business module
e.g: /modules/messaging/crons/commands instead of /modules/messaging/commands/crons
Patterns are now inside their own cron-command files since they don't need to be exported
Ideally cronJobs and cronCommands should have their logic within the same class but it's a bit harder than expected due to how commanderjs and our worker need both some class heritage check, hence the first approach is to move them in the same folder

Also Messaging fullsync/partialsync V2 has been dropped since this is the only used version => Breaking change for ongoing jobs and crons. Jobs can be dropped but we will need to re-run our crons (only cron:messaging:gmail-fetch-messages-from-cache)

@Weiko Weiko force-pushed the c--fix-calendar-folder-structure branch from ba4f8de to c2c87ba Compare April 11, 2024 16:45
@Weiko Weiko merged commit f4fda22 into main Apr 12, 2024
5 checks passed
@Weiko Weiko deleted the c--fix-calendar-folder-structure branch April 12, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants