Seconds on a ScheduleTask

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi,

I see that a ScheduleTask class has a property named 'Seconds' and a comment stating: "Gets or sets the run period (in seconds)".

What does this property do? Abort the task after given seconds?

Other question. Can I use the ScheduleTaskService, to insert a task that should be executed, once a day, everyday?

Thanks!
7 years ago
Yes, this properly is for seconds.
You can insert directly in database also with the time duration (seconds) in 86400 (24 Hours).

Does this helps?
7 years ago
Thanks for your answer.

But is it the time till this task gets executed? Or is it the maximum time allowed for the task to be completed? I have a task that can take some hours to complete and other times it could be completed in a few minutes (synchronizing data). What whould I set it at? nopCommerce shouldn't cancel it after x seconds.
7 years ago
The time you provided is the time interval when this task will executed.
Suppose you want to execute 1 task every 1 hour, then set it as (60min * 60 sec) = 3600
This is what interval only.
7 years ago
MaxMommersteeg wrote:
nopCommerce shouldn't cancel it after x seconds.


Not at all.
7 years ago
Ah ok, thanks! This give me the clarification that I needed:)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.