Pass arguments/parameters to a Scheduled Task

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi, I wanted to know if you can pass arguments/parameters to a scheduled task? I have a plugin with a schedule task that I want to run and pass it a number 450, 900, 1350 etc. I can't seem to figure it out.

Any thoughts?
6 years ago
Ah....I put this in the wrong forum section...
6 years ago
You can use Settings  ( SetSetting() / GetSettingByKey() )
6 years ago
I'll have to look. Any examples?
6 years ago
just store your value in setting and get it in your scheduler method as per your requirement.
6 years ago
Thanks. I’ll play around with it
6 years ago
Sound good (Y)
6 years ago
So I think I can do what I want to do. But I need to know how to get the "scheduled task" that is running. I know it passes the "id" in the URL, but how do I get that ID?

http://localhost:15536/Admin/ScheduleTask/RunNow/1072

The 1072
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.