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.v2 refactor: Scaling to the users #833

Open
belisoful opened this issue Dec 18, 2022 · 1 comment
Open

Cron.v2 refactor: Scaling to the users #833

belisoful opened this issue Dec 18, 2022 · 1 comment

Comments

@belisoful
Copy link
Member

In looking at #815 it was clear that cron could use a refactor to be more performant and user oriented rather than just system/application oriented. That is to say, all the tasks do not need to load from the DB, just those needed/searched, unless it's returning all. So pending tasks needed to be made more efficient. Only specified application tasks from TCronModule need to be loaded for cron to work, not the DB cron tasks.

There are a few other additions as well:

  • To the SecondResolution (option) of executing by sleeping the cron thread and ordering the tasks by nextTriggerDate.
  • Updated permission for dyRunTask to enable specific users to run cron tasks (or all if the permissions are set so).
  • Updated permissions to allow users to search, edit, and delete their own cron tasks and logs.
  • Display of logs and log flushing in the shell
  • Changed the default action for "cron/" to show the tasks rather than run.
@belisoful
Copy link
Member Author

There are some updates to the database for cron v2. A Shell Migration Action would be awesome.... to upgrade the databases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant