How can I queue a task to Celery from C#?
<p>As I understand message brokers like RabbitMQ facilitates different applications written in different language/platform to communicate with each other. So since celery can use RabbitMQ as message broker, I believe we can queue task from any application to Celery, even though the producer isn't written in Python.</p>

<p>Now I am trying to figure out how I can queue a task to Celery from an application written in C# via RabbitMQ. But I could not find any such example yet.</p>

<p>The only information close to this I found is <a href="http://stackoverflow.com/questions/14724910/can-i-use-java-send-task-to-celery-through-rabbitmq">this SO question</a></p>

<p>Where the accepted answer suggests to use the Celery message format protocol to queue messages to RabbitMQ from Java. However, the link given in the answer does not have any example, only the message format.</p>

<p>Also, the message format says task id (UUID) is required to communicate in this protocol. How is my C# application supposed to know the task id of the celery task? As I understand it can only know about the task name, but not the task id.</p>

<p>According to this <a href="http://www.rabbitmq.com/dotnet-api-guide.html" rel="nofollow">article</a>, celery .Net client uses default TaskScheduler that comes with .Net Framework. This knows how to generate ID for your task. This article also points to some example <a href="https://msdn.microsoft.com/library/system.threading.tasks.taskscheduler.aspx" rel="nofollow">here</a>.</p>

c# python rabbitmq celery task-queue