Comments (2)
Are you using this job store as is instead of JobStoreTX? Normally you want to use JobStoreTX - the CMT version is extension point for containers like Spring.NET. It's important that this job store does not open the connection as it's container's job to do so.
from quartznet.
Yes, I'm using it directly. Changes to jobs and triggers that my code makes must be part of ambient transaction (TransactionScope) that the code runs in. For me, the connections are not that important - the transaction is. As long as everything is in one transaction, it's fine. I had to choose between letting JobStoreCMT open its own connection (in its code I saw that it creates a connection after all, it just doesn't open it) and let the transaction to be escalated to MSDTC (no big deal here, these parts are not critical performance-wise) or overload JobStoreCMT so that it would use connection created by NHibernate (and wrap the connection so that Quartz wouldn't close that connection when it no longer needs it). I chose the former, mostly because it was quicker to implement.
In situations like mine (no problem with letting Quartz escalate the transaction) JobStoreCMT is useful on its own (provided it opens the connection). My infrastructure manages the ambient transactions and JobStoreCMT plays well with them.
from quartznet.
Related Issues (20)
- Expose IJobWrapper interface to allow access to the wrapped job HOT 1
- Error managing cluster: Failure updating scheduler state when checking-in: Exception while reading from stream HOT 4
- Recover scheduler
- How to handle critical code HOT 1
- Persian calendar to compute NextFireTime in triggers
- Getting SQLite 'database is locked.' Errors. It's a Design Issue
- BinaryFormatter removal HOT 1
- Add possibility on AdoJobStore to clear on startup HOT 5
- CronExpresion.GetTimeAfter caught exception HOT 2
- CronExpresion monthly and weekdayonly skips the month when on day of Saturday HOT 1
- Jobs with injected services that implement IAsyncDisposable are not disposed HOT 2
- Initialization fails when Window's TCP/IP Media Sense is disabled ("Cannot run without an instance id" exception) HOT 1
- Trigger doesn't fire job in Docker container of IHostedService
- Website not rendering (quartz-scheduler.net) HOT 1
- Jobs running multiples times after each deployment to the azure services
- CalendarIntervalSchedule is firing non-stop for 10 mins on the day that DST begins (and we lose an hour).
- Scheduler is frozen after one month of running. HOT 1
- XMLSchedulingDataProcessorPlugin: Issues with BinarySerializer HOT 1
- asynchronous method 'Quartz.Core.QuartzSchedulerThread.Run()', is waiting on a synchronous call to method 'System.Threading.Monitor.Wait(object, int)' HOT 2
- Upgrading from 3.3.3 to 3.8.1 resulted in error: communicating with remote scheduler 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 quartznet.