Comments (3)
It's possible to set the value in the application initializers because it's a ||=
, that's why it's an after_initialize
BTW. It doesn't pollute the global config because it respects it. Even something in after_initialize
can be tweaked because after_initialize
run in the railties order and the application is typically the last railtie, so an after_initialize
from the application would override it, but it's not even necessary with the ||=
.
We didn't use that option because it didn't exist at the time in job-iteration
. We could use it, but you can also use it in your own custom job directly, so I'm not sure it's worth it if it means any breaking change here.
from maintenance_tasks.
Also that commit hasn't been released yet, so we still can't use it. And there's an issue with the implementation, it breaks JobIteration.max_job_runtime
as far as I can see.
Edit: no it's fine because the global value is in the included
hook.
from maintenance_tasks.
It's an old commit, thought it's been released already, sorry.
Well, after_initialize
is necessary if you want max_job_runtime
to stay nil
. 🤔
Anyway, I agree it seems it's not worth the effort to introduce such change if no one else has complained. I'll close it, thank you for you time and help.
from maintenance_tasks.
Related Issues (20)
- Changing batch size on causes the job to skip records HOT 1
- Support zipped csv files in `csv_collection` HOT 6
- Adding the ability to tag tasks for filtering on the index page HOT 3
- Persist user email HOT 4
- Consolidating migrations HOT 2
- Retry button
- Cursor based iteration HOT 6
- Multiple database shards HOT 3
- How do we set `limit`? HOT 8
- No callback is called after Interrupted -> Resumed HOT 5
- Release notes HOT 1
- Web UI and Rails API mode HOT 3
- CSV Task Failure: ActiveRecord::NotNullViolation Error on UUID record_id HOT 2
- please add a CHANGELOG.md file HOT 4
- Weekly CI run failed
- Weekly CI run failed HOT 1
- Weekly CI run failed HOT 1
- Weekly CI run failed HOT 1
- CSV count wrong when new line in cell HOT 8
- Weekly CI run failed HOT 1
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 maintenance_tasks.