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

CRON jobs code refactorization in GEAR3 #507

Open
khgsa opened this issue Oct 24, 2024 · 0 comments
Open

CRON jobs code refactorization in GEAR3 #507

khgsa opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
application A task/issue involving work on the application code

Comments

@khgsa
Copy link
Collaborator

khgsa commented Oct 24, 2024

Isolate CRON Job Logic:

Move your CRON job logic out of your controllers to keep them clean and maintainable. This allows for better separation of concerns.

Implement Reusable Services:

Develop services that can be reused across different parts of the application. This promotes DRY (Don’t Repeat Yourself) principles and keeps your code modular.

Transform Callbacks to Promises:

Convert your callback-based code to use Promises. This modernizes your code and improves readability. Wrap third-party event-driven code in Promises for consistency.

Asyncify Your Code:

Update synchronous code to use async/await wherever possible. This ensures your application can handle I/O operations efficiently and avoid blocking.

@khgsa khgsa self-assigned this Oct 24, 2024
@hatfieldjm4 hatfieldjm4 added the application A task/issue involving work on the application code label Oct 24, 2024
@hatfieldjm4 hatfieldjm4 moved this to In progress in Deploy GEAR 3.0 Oct 24, 2024
hatfieldjm4 added a commit that referenced this issue Oct 31, 2024
hatfieldjm4 added a commit that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
application A task/issue involving work on the application code
Projects
Status: In progress
Development

No branches or pull requests

2 participants