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

Clarify the method to use when running a Commerce scheduled task asap #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion en/01_Commerce/v1/10_Scheduler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Scheduling tasks is easy to do from within modules or custom code.
There are 2 ways of going about scheduling a task.

1. To run a task at a fixed schedule (every X minutes, nightly, etc), use the `$scheduler->repeat()` method.
2. To run a task that only runs once, whether that needs to run at the first opportunity or at a specific date/time in the future, use $sche ASAP or
2. To run a task that only runs once, whether that needs to run at the first opportunity or at a specific date/time in the future, use the `$scheduler->run()` method.

Regardless of approach, access the Scheduler class with Commerce::scheduler(). For example in a module or model class:

Expand Down