Comments (1)
Well, as you perhaps saw in the documentation, the Job is analyzed and not everything (including try catch) is supported in JobRunr. See also the best practices.
That being said, I see 2 easy solutions:
- get a JobRunr Pro license which supports multi tenancy out of the box 😊
- pass the tenantId as a Job argument and set the Tenant as first thing inside your job.
You must remember that Jobs can pass JVM / server boundaries so things like ThreadLocal (what I assume you're doing with the TenantContext) are not available. Instead you should load them first thing inside your job.
Hope this makes sense, if not, I've reached out via LinkedIn.
from jobrunr.
Related Issues (20)
- [BUG] HikariDataSource HikariDataSource (HikariPool-1) has been closed HOT 19
- [Improvement] Better BackgroundJobServer initialization in Spring HOT 1
- Severe JobRunr Exception HOT 1
- [BUG] Migration applies multiple times when containers start concurrently HOT 1
- Severe JobRunr Exception HOT 3
- An unrecoverable error occurred. Shutting server down... java.lang.NullPointerException: Cannot invoke "java.util.UUID.equals(Object)" because "this.masterId" is null[BUG] HOT 1
- [Feature] JobRunr v7: allow to define custom BackgroundJobServerWorkerPolicy bean HOT 1
- [BUG] Kotlin default parameters HOT 1
- [BUG] java.util.ConcurrentModificationException HOT 19
- [BUG] Unexpected behaviour with the stream enqueue HOT 3
- [Feature] add support for kotlinx.serialization as JsonMapper HOT 6
- [BUG] Spring Boot GraalVM native mode build fails if Bean is defined via `JavaConfig` HOT 1
- 7.0.0: Document breaking change in JobDashboardProgressBar HOT 1
- Severe JobRunr Exception HOT 1
- [Feature] Automatically create jobs if Spring Bean is annotated with @Job annotation
- missing info on upgrade to 7.0 from upgrade page HOT 2
- [Improvement] Add maven central artifact relocation info
- [BUG] RecurringJobNotFoundException when migrating to v7.0.0 - when recurring job cron is disabled and entity never existed in recurring_jobs table. HOT 1
- Question: ordering of fire-and-forget job processing
- [BUG] Instruction 191 not found when throwing exception in lambda HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jobrunr.