You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -722,7 +722,7 @@ You can create and delete recurring tasks at runtime, without editing the config
722
722
#### Creating a recurring task
723
723
724
724
```ruby
725
-
SolidQueue.schedule_recurring_task(
725
+
SolidQueue.create_recurring_task(
726
726
"my_dynamic_task",
727
727
command: "puts 'Hello from a dynamic task!'",
728
728
schedule: "every 10 minutes"
@@ -734,25 +734,25 @@ This will create a dynamic recurring task with the given key, command, and sched
734
734
#### Deleting a recurring task
735
735
736
736
```ruby
737
-
SolidQueue.delete_recurring_task(task_id)
737
+
SolidQueue.destroy_recurring_task(key)
738
738
```
739
739
740
-
This will delete a dynamically scheduled recurring task by its ID. If you attempt to delete a static (configuration-defined) recurring task, an error will be raised.
740
+
This will delete a dynamically scheduled recurring task by its key. If you attempt to delete a static (configuration-defined) recurring task, an error will be raised.
741
741
742
742
> **Note:** Static recurring tasks (those defined in `config/recurring.yml`) cannot be deleted at runtime. Attempting to do so will raise an error.
743
743
744
744
#### Example: Creating and deleting a recurring task
0 commit comments