title: Django Celery Periodic Task How to call Task method That is inside class
body: <p>I want to send periodic mail to certain user After the user has been registered to certain platform I tried to send email using celery which works fine and Now I want django celery to send periodic mail as of now I have set the email time period to be 15 seconds. Further code is here</p>
  <p><code>celery.py</code></p>
  <pre><code>   app.conf.beat_schedule = {
      'send_mail-every-day-at-4': {
          'task': 'apps.users.usecases.BaseUserUseCase().email_send_task()',
          'schedule': 15
      }
     }
  </code></pre>
  <p>I have my Class in this way -&gt;apps.users.usecases.BaseUserUseCase.email_send_task
  here is my usecases to send  email</p>
  <pre><code> class BaseUserUseCase:
      ##other code is skipped 
  
      @shared_task
      def email_send_task(self):
          print(&quot;done&quot;)
          return ConfirmationEmail(context=self.context).send(to=[self.receipent])
  </code></pre>
  <p>How do I call this <code>email_send_task</code>  method am I doing right any help regarding this It is not working.</p>