ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on March 25, 2013, 06:34:28 pm

Title: Disabled or not?
Post by: emanuele on March 25, 2013, 06:34:28 pm
Code: (install mysql) [Select]
	(11, 0, 120, 1, 'd', 1, 'remove_temp_attachments'),
(12, 0, 180, 1, 'd', 1, 'remove_topic_redirect'),
(13, 0, 240, 1, 'd', 1, 'remove_old_drafts'),
Code: (upgrade mysql) [Select]
INSERT INTO {$db_prefix}scheduled_tasks
(next_time, time_offset, time_regularity, time_unit, disabled, task)
VALUES
(0, 120, 1, 'd', 0, 'remove_temp_attachments');
INSERT INTO {$db_prefix}scheduled_tasks
(next_time, time_offset, time_regularity, time_unit, disabled, task)
VALUES
(0, 180, 1, 'd', 0, 'remove_topic_redirect');
INSERT INTO {$db_prefix}scheduled_tasks
(next_time, time_offset, time_regularity, time_unit, disabled, task)
VALUES
(0, 240, 1, 'd', 0, 'remove_old_drafts');

So, disabled or not disabled? O:-)
Title: Re: Disabled or not?
Post by: Arantor on March 25, 2013, 07:48:56 pm
I seem to recall it's inverted, like the count-posts flag on boards.
Title: Re: Disabled or not?
Post by: emanuele on March 27, 2013, 05:44:00 am
Sorry for the confusion, I wanted to say that during install these scheduled tasks are set disabled, while when upgrading are enabled.

I would set them one way or the other. :P (enabled seems the more logical)
Title: Re: Disabled or not?
Post by: Spuds on March 27, 2013, 09:06:34 am
Seems like they should be enabled by default except for the remove old drafts which I think I set to enable disable when the feature is turned on/off.  So that one should be off by default and let the feature decide if its on or not.