Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Explain locking and link to example#795

Closed
dandv wants to merge 2 commits intomainfrom
dandv-README-locking
Closed

Explain locking and link to example#795
dandv wants to merge 2 commits intomainfrom
dandv-README-locking

Conversation

@dandv
Copy link
Contributor

@dandv dandv commented Mar 29, 2019

I hope examples will greatly help newcomers understand how Agenda works!

Takes a `number` which specifies the default number of a specific job that can be running at
any given moment. By default it is `5`.

The concurrency parameter is only important when the job takes longer than its
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this is incorrect. Gonna throw together a minimal repo to try and confirm.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I've thrown this together: https://github.com/wingsbob/agenda-concurrency-example

You can run with different default concurrency levels by setting the environment variable CONCURRENCY. The lock time is left as the default (10 mins), so that's definitely not coming into effect.

Agenda#every might not be the best example for concurrency, as it creates single type jobs, which seem to be semi-unique


* Multiple queues don't process the same job
* The same job doesn't get run again before it has finished. For example, if a job
is scheduled to run [`every`](#everyinterval-name-data-options-cb) 5 seconds but
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use Job#repeatEvery for this example

@OmgImAlexis
Copy link
Member

Is this able to be updated or should we close this?

@simllll
Copy link
Member

simllll commented Jan 23, 2026

We are actively working on Agenda 6.x which includes a complete TypeScript rewrite with many improvements. This issue is being closed as part of our migration. If this is still relevant after 6.x is released, please open a new issue. Thank you for your patience!

@simllll simllll closed this Jan 23, 2026
@simllll simllll deleted the dandv-README-locking branch January 27, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants