Comments (5)
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
I think that the documentation improvements made for 2.1.0 should cover this.
from apscheduler.
Original comment by Dariusz Suchojad (Bitbucket: dsuch, GitHub: dsuch):
Thanks, that did the trick.
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
You misunderstand. Just pass max_runs= to add_interval_job() or whatever. The job adding functions pass along all keyword arguments to Job.
from apscheduler.
Original comment by Dariusz Suchojad (Bitbucket: dsuch, GitHub: dsuch):
OK, but the apscheduler.job.Job's docs say "Job instances are created by the scheduler when adding jobs, and it should not be directly instantiated." and I haven't ever had a need to use this class directly before.
Could either the 'max_runs' parameter be added to Scheduler.add_interval_job and Scheduler.add_cron_job or the docstring updated so that users don't get an impression they shouldn't be tinkering with this class themselves?
On a related note, how does 'max_runs' influence one-time jobs? I mean, how can a job be both of a one-time type and have 'max_runs' provided? I'm asking because the changelog says the parameter is to do with all the jobs, not only interval-based and cron-style ones.
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
http://readthedocs.org/docs/apscheduler/en/latest/modules/job.html#apscheduler.job.Job
You can pass these as keyword arguments when adding a job. Perhaps I should point this out more clearly in the docs.
from apscheduler.
Related Issues (20)
- Implement schedule filters
- [v4.0.0a4] Combining daily and weekly triggers increments by 14 days HOT 7
- [v4.0.0a4] Setting `timezone` in `CalendarIntervalTrigger` loops forever HOT 1
- RuntimeError: cannot schedule new futures after interpreter shutdown when the job is triggered HOT 6
- PsycopgEventBroker.from_async_sqla_engine raises
- `'CronTrigger' object has no attribute 'year'` when try to pause schedule HOT 13
- Save results of scheduler jobs, version: 4.0.0a5 HOT 6
- Table Prefix for SQLAlchemyDataStore HOT 4
- Improved documentation around "day_of_week" 0/1 confusion HOT 1
- TypeError: cannot pickle '_io.TextIOWrapper' object HOT 5
- Event loop is closed when using AsyncScheduler with RedisEventBroker HOT 2
- Allow more job defaults' config to be passed
- v4 Temporary data store error Scheduler crashed HOT 4
- Export crontab line from CronTrigger HOT 7
- Bug when stopping scheduler with jobs running - APScheduler v4 HOT 14
- App crash HOT 15
- Add .get_task method to Schedulers - APS v4 HOT 9
- Is typo in _context.py? HOT 1
- All workers run job when using sqlite3 data store HOT 5
- Add priority to jobs - APS V4
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 apscheduler.