Pass arguments/parameters to a Scheduled Task

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 6 años
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?
Hace 6 años
Ah....I put this in the wrong forum section...
Hace 6 años
You can use Settings  ( SetSetting() / GetSettingByKey() )
Hace 6 años
I'll have to look. Any examples?
Hace 6 años
just store your value in setting and get it in your scheduler method as per your requirement.
Hace 6 años
Thanks. I’ll play around with it
Hace 6 años
Sound good (Y)
Hace 6 años
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.