Dima Turchenko Posted November 27, 2016 Posted November 27, 2016 Hello! What numbers i must set while plugin task creating if i want that task run one time per day - in 01:00 after midnight? Thanks!
bfarber Posted November 28, 2016 Posted November 28, 2016 You specify how frequent the task runs, not the specific time it runs, I'm afraid. The best you could do is have it run periodically (maybe every hour or so) and then within the task check the current time to see if it is >1:00 but <2:00. That could be risky if the site doesn't get much traffic in the middle of the night though and a task backlog develops.
Dima Turchenko Posted November 28, 2016 Author Posted November 28, 2016 Hello Yes, I got it, and came up with solution using cron for Task Method option. One cron command for forum common tasks and another for my personal task by passing ID of the task like second argument in cron. Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.