Comments (16)
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
tnx.
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
I decided to include this fix in 2.1.2. Thank you.
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
Yes. I wish there was a way to reproduce the issue.
Is it possible for you to try running your software on a more recent Linux just to see if the problem occurs there too? I'd like to get to the bottom of this before I make a decision. I'm very reluctant to ignore exceptions if I don't understand when and why they are happening. I'm not rejecting your proposal, but I want to be clear about why it's needed.
from apscheduler.
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
Yes. I did it in a naïve way.
I ran a Python program that just has: time.sleep(100).
Then I ran kill from Unix prompt on it with various signals (e.g. SIGTERM, etc.) but the "IOError 514 exception" did not happen.
Is that what you meant by interrupting the sleep with signals?
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
But did you try interrupting the sleep with signals?
from apscheduler.
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
Hi,
I was running time.sleep in a dummy script (using threads) for more than a week and have not yet hit the "IOError 514 exception".
I know that "IOError 514 exception" can happen since it happened again in the production tool/environment inside the APScheduler package.
I will be grateful if you will patch APScheduler as I described at the beginning of this thread.
Thanks,
Maoz
from apscheduler.
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
Update: I am trying to reproduce it by calling time.sleep API but without success (yet)
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
Good, because if this is only a bug in old Linux kernels, I don't want to add such a workaround.
from apscheduler.
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
I will try next week to send a Unix signal during time.sleep() and will update you later.
from apscheduler.
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
Didn't try since the try-except block "workaround" is good enough
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
Yes but can you reproduce this problem by interrupting time.sleep() with a signal?
from apscheduler.
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
In my Python script I am calling time.sleep API in few places and I had to wrap it in a try-except block since I hit that IOError 514 exception
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
From what I found out, this seems to be a problem when the select() is interrupted by a signal. That might be a way to reproduce the issue more quickly.
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
Wow, that is ancient. Can you verify that this is still a problem on present day kernels?
from apscheduler.
Original comment by maoz_guttman (Bitbucket: maoz_guttman, GitHub: Unknown):
#!tcsh
% uname --kernel-release
2.6.16.60-0.58.1.3835.0.PTF.638363-smp
from apscheduler.
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):
What Linux kernel version are you running?
from apscheduler.
Related Issues (20)
- `__{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
- `'CronTrigger' object has no attribute 'year'` when try to pause schedule HOT 8
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.