Comments (6)
Ok, it looks like in our case QueuedJobsService::$memory_limit was EXACTLY set to the server limit, so there was no chance for the queue to safely escape.
from silverstripe-queuedjobs.
I've come up with a fix; Hope it meets the expected high quality of contribution. ;D
from silverstripe-queuedjobs.
It's a problem with any fatal
error, in that the job is left "Running". There's some logic in checkJobHealth
that will actually see whether a descriptor has incremented its "steps processed" field (ie currentStep from within the job), but that only kicks in if StepsProcessed is greater than 0. One way to work around things is to set currentStep in the constructor when first creating the job...
from silverstripe-queuedjobs.
Ok thanks @nyeholt :D
I wonder if we could improve the check to work even if StepsProcessed is 0; I've raised an internal ticket pointing at this open source issue and will try to schedule some time to properly resolve this.
from silverstripe-queuedjobs.
Yet another potential improvement at #43
It doesn't stop the module from crashing, but ensures that jobs are recoverable.
from silverstripe-queuedjobs.
I think this is issue obsolete with the new doorman backend. :)
from silverstripe-queuedjobs.
Related Issues (20)
- Immediate Jobs are never detected as stalled or broken HOT 2
- Queue keeps adding duplicate jobs and long-running php processes HOT 3
- Empty INFO messages each time process() is called HOT 1
- Minimum PHP Version HOT 4
- PHP version constraint HOT 1
- Run withouth user from CMS not working correctly
- CleanupJobs dont always get `reenqueue()`'d HOT 1
- Array to String conversion in checkJobHealth() HOT 1
- afterComplete sometimes doesn't run HOT 1
- Only administrators can view queued jobs HOT 1
- File locking should be configurable HOT 4
- Default jobs recreated multiple times HOT 1
- PHP 8.2: Dynamic properties deprecated, but are currently required for JobData? HOT 8
- Fresh install SilverStripe 4.11 + StaticPublisher HOT 8
- Errors during job initialisation aren't logged as messages against the job
- UI doesn't provide usefull search fields HOT 1
- Configuration option to disable Missing Default Job email HOT 1
- SS5 Queued Jobs 5.0.0: Gridfiled Admin pagination missing after search HOT 1
- onBefore/After actions HOT 2
- Silverstripe dataObject not found inside AbstractQueuedJob extending class HOT 3
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 silverstripe-queuedjobs.