Skip to content

Concurrency Limit apalis 0.5.0 #252

Closed Answered by geofmureithi
AzHicham asked this question in Q&A
Discussion options

You must be logged in to vote

0.5 brought clarity between concurrency and parallelism.

Internally here is what happens:

  1. The worker checks if service is ready. Meaning if you have layers like ConcurrencyLayer will be checked.
  2. The worker will ask the poller for a job when service is ready.
  3. The worker will get the next job and it will call spawn, meaning it will not wait for the job to complete and it will just request the next. (Parallelism)

Register with count offers concurrency. The number of workers will all follow the same process as above.
If you only need one worker, have you considered just using register?

The problem you are facing is the change that the service is now clone and each worker gets a clone of the…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@AzHicham
Comment options

@AzHicham
Comment options

Answer selected by AzHicham
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AzHicham
Comment options

@geofmureithi
Comment options

Comment options

You must be logged in to vote
1 reply
@derekleverenz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #251 on February 27, 2024 14:38.