Comments (4)
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
Just so you know this has been fixed for apscheduler 3.0 already. Might fix it for 2.x too if you want of course.
from apscheduler.
Original comment by Allen Sanabria (Bitbucket: linuxdynasty, GitHub: linuxdynasty):
Currently in scheduler.py in def get_jobs you have.
#!python
def get_jobs(self):
"""
Returns a list of all scheduled jobs.
:return: list of :class:`~apscheduler.job.Job` objects
"""
self._jobstores_lock.acquire()
try:
jobs = []
for jobstore in itervalues(self._jobstores):
jobs.extend(jobstore.jobs)
return jobs
finally:
self._jobstores_lock.release()
I propose that you change it to..
#!python
def get_jobs(self, alias=None):
"""
Returns a list of all scheduled jobs.
:return: list of :class:`~apscheduler.job.Job` objects
"""
self._jobstores_lock.acquire()
try:
jobs = []
if not alias:
for jobstore in itervalues(self._jobstores):
jobs.extend(jobstore.jobs)
else:
if alias in self._jobstores:
jobs.extend(self._jobstores[alias].jobs)
return jobs
finally:
self._jobstores_lock.release()
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
Actually, looks like that flaw has been fixed in Bitbucket. I disabled anonymous issue reporting now.
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
Seems reasonable. Next time though, preview your submissions! And preferably log in before you submit (Bitbucket has no way of blocking anons from creating new issues).
from apscheduler.
Related Issues (20)
- AsyncIOScheduler not working with MongoDBJobStore (cannot pickle 'TaskStepMethWrapper' object) HOT 3
- `__{a}exit__` typing
- sqlalchemy.exc.ProgrammingError: (asyncmy.errors.ProgrammingError) (1064, "You have an error in your SQL syntax; HOT 3
- TypeError: RetryMixin._retry.<locals>.after_attempt() missing 1 required positional argument: 'retry_state' HOT 1
- Worker stops if there are "too much" simultaneous jobs HOT 2
- Objects inside the job are instantiated multiple times HOT 2
- SQLAlchemyDataStore doesn't respect a custom schema for types
- Create a Cron Trigger with month="*/12" does not work HOT 6
- Allows defining custom pickling method. HOT 5
- So confusing between sync and async. HOT 2
- Logger not logging events of the scheduler instance
- Infinite loop in CalendarIntervalTrigger with UTC timezone
- Support pausing and unpausing schedules HOT 4
- When a job is forcibly cancelled by calling `stop()`, the added schedule to the scheduler will no longer create new job.
- background cron job getting stopped after time run HOT 1
- 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
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.