celery/celery — pull request #1164 by victorgp (2013-01-23 12:41:27+00:00)
Title: Setting self.options in apply_async if the options parameter is empty

The periodic tasks have an attribute called "options" where you can specify extra things. Celery beat gets them and calls apply_async passing this attribute as the **options parameter this method has.

But, if you want to run the periodic task without celery, for example in a Python shell calling MyTask.delay() the "options" task attribute is ignored since the apply_async method does not check if the task already has something in the "options" attribute, it just only consider the parameter.

Taking advantage that those options are already in the task itself ( self.options ), the apply_async method should be able to use it if the **options parameter is empty.