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

What are the use cases for disabling a task? #7

Closed
wpscholar opened this issue Apr 17, 2023 · 1 comment
Closed

What are the use cases for disabling a task? #7

wpscholar opened this issue Apr 17, 2023 · 1 comment

Comments

@wpscholar
Copy link
Member

wpscholar commented Apr 17, 2023

Is there a reason we would disable a task as opposed to just deleting it?

If not, we should remove the enabled column from the database as well as any class properties, etc.

@amartya-dev
Copy link
Contributor

It was added for a use case related to periodic tasks, this will allow a user to disable a periodic task and re-enable when needed without having to re-create the task from scratch.

So our system would only delete the cron entry and re-add it when the task is enabled again.

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

No branches or pull requests

2 participants