title: TypeError: func() takes exactly 1 argument (0 given)
body: <p>I'm new to python but I know that self is automatically passed.I'm unable to understand why am I getting this error and I get the same error with getGraph function as well 2 required 1 given.
  What is going wrong here? </p>
  
  <p>CreateDoc is in CeleryTasks.py and insert_manager in MongoTriggers.py</p>
  
  <pre><code>    @app.task
      def createDoc(self):
          print ("CeleryTasks:CreateDoc")
          if 'refs' not in self.data:
              return
  
          print(self.data['refs'])
  
          for id in self.data['refs']:
              doc = self.db[self.collName].find_one({'_id': id})
              if doc is None:
                  insertedID = self.db[self.collName].insert_one({
                      "_id": id
                  })
  
                  print (insertedID)
  
      #Trigger on Mongo Operations
      def insert_manager(op_document):
          print("Data Inserted")
          # pprint.pprint (op_document)
          data = op_document['o']
          ns = op_document['ns'].split('.')
          # pprint.pprint (data)
          docID = op_document['o']['_id']
          tasks = CeleryTasks(port, docID, dbName, collectionName, data)
          tasks.createDoc()
          tasks.getGraph.delay(docID)
  </code></pre>