In periodic reverificaiton, use schedule_special_task() instead of straight object creation. This is the right path to use for creating tasks -- it include duplication avoidance and automatic owner tagging.
Signed-off-by: Steve Howard <[email protected]> --- autotest/scheduler/monitor_db_cleanup.py 2010-01-11 14:03:08.000000000 -0800 +++ autotest/scheduler/monitor_db_cleanup.py 2010-01-13 21:23:57.000000000 -0800 @@ -180,7 +180,7 @@ logging.info('Reverifying dead hosts %s' % ', '.join(host.hostname for host in hosts)) for host in hosts: - models.SpecialTask.objects.create( + models.SpecialTask.schedule_special_task( host=host, task=models.SpecialTask.Task.VERIFY) _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
