Exemple #1
0
	def run(self, **kwargs):
		print with_time("blog.PeriodicUpdateSummaryItemsOnly") # TODO: Debug

		# XXX: Limit to a smaller number...
		items = BlogItem.objects.filter(has_contents=False) \
								.filter(tried_fetch_count__lt=5)

		# TODO: Respond to server overload
		for item in items:
			get_fulltext.delay(item.pk)
Exemple #2
0
	def run(self, **kwargs):
		print with_time("node.PingSylphNodes") # TODO: Debug

		nodes = Node.objects.filter(is_yet_to_resolve=False) \
							.filter(node_class='sylph') \
							.exclude(pk=settings.OUR_NODE_PK)


		# TODO: Respond to server overload
		for node in nodes:
			print "\t...scheduling node %d" % node.pk
			ping_node.delay(node.pk)
Exemple #3
0
	def run(self, **kwargs):
		print with_time("blog.PeriodicPullBlogFeed") # TODO: Debug

		# TODO XXX XXX XXX: LIMIT TO ONLY 5 AT A TIME!
		subs = Subscription.objects.filter(
										key='blog',
										is_ours=True
									)

		# TODO: Respond to server overload
		for sub in subs:
			node = sub.node
			print "\t...Scheduling blogfeed fetch from node %d" % node.pk
			get_feed.delay(node.pk)