Azure / Azure/durabletask

Feature Request: Support Un-equal Workers natively

Aperta
#394 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
1.7k
Fork
335
Merge medio
2g 23h
PR unite (30g)
6

Descrizione

Assuming that I have an orchestration that consist of 3 tasks - A, B, C. I also have 2 workers (running on different processes/nodes), where worker is a "leader" and the other is a "worker/slave".

I'd like to be able to configure that certain tasks - e.g. Task C in the above example - should be performed only on the "leader" node.

I as able to achieve something like that, in a very inefficient manner - in the "leader" node, I started a Worker that can handle the Orchestration and Task A. In the "worker" node, I started a Worker that can handle the Orchestration and Tasks B & C. This works, because eventually, the "leader" node will retrieve the Task A message from the queue. However, it's very inefficient, since "worker" node has an equal chance of getting a Task A message, and then it will throw an exception, and "return" the message to the queue.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia esaminando il comportamento di worker, orchestrazione, distribuzione dei task e instradamento della queue descritto nell’issue. Traccia il modo in cui i worker ricevono i task e il modo in cui i task non supportati vengono restituiti alla queue. Il lavoro è completato quando i worker possono essere configurati con responsabilità diverse per i task, in modo che i task designati vengano eseguiti solo sul leader senza ripetuti recuperi falliti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
backend, distributed-systems
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.