In-memory
Use the JobRunr InMemoryStorageProvider for testing and lightweight, instance-local tasks.
On this page
JobRunr ships with an InMemoryStorageProvider that keeps all jobs in process memory. It is ideal for tests and for lightweight, server-instance-specific tasks where persistence does not matter.
Warning
Configuration
No dependency is required - the InMemoryStorageProvider is part of JobRunr core.
JobRunr.configure()
.useStorageProvider(new InMemoryStorageProvider())
.useBackgroundJobServer()
.initialize();
jobrunr:
database:
type: mem
quarkus.jobrunr.database.type=mem
jobrunr.database.type=mem
Next steps
- Using more than one database? Tell JobRunr which one it should use. See multiple databases in one application.
- Build the
StorageProvideryourself: Take full control instead of letting the framework integration configure it for you. See configuring the StorageProvider yourself.
Looking for another database? Back to the Storage overview.
