Comments (4)
good catch, what would you propose to fix?
from redbeat.
In my code I've monkeypatched RedBeatSchedulerEntry
with this:
def due_at(self):
# never run => due now
if self.last_run_at is None:
return self._default_now()
delta = self.schedule.remaining_estimate(self.last_run_at)
# if no delta, means no more events after the last_run_at.
if delta is None:
return None
# overdue => due now
if delta.total_seconds() < 0:
return self._default_now()
return self.default_now() + delta
ie. just changing the last line to use self.default_now()
instead of self.last_run_at
. It seems to work, but I confess that I haven't tried running the redbeat tests with that change :-)
from redbeat.
I think I might be getting bitten by this, I run very frequent periodic tasks (i.e. every couple of seconds) and occasionally tasks stop kicking off for exactly 5mn, which looks suspiciously like the default beat_max_loop_interval
.
Applying the change suggested by @simonk52 definitely breaks the test suite, specifically tests.test_entry.test_RedBeatEntry.test_due_at
.
from redbeat.
@sibson is there a plan to fix this anytime soon? This seems fairly fixable as per @simonk52 's monkeypatch.
from redbeat.
Related Issues (20)
- "LockNotOwnedError: Cannot extend a lock that's no longer owned" When laptop goes to sleep. HOT 3
- Redbeat do not support ZoneInfo classes (PEP-615) HOT 1
- What happens to tasks when redis goes down or you wat to get bigger redis server? HOT 2
- Tasks wont run always after updating the schedule
- Celery/Redbeat cron tasks with diffrent timezones wont run at time HOT 5
- LockNotOwnedError: Cannot release a lock that's no longer owned
- Periodic tasks will be disappear,when restart redis.
- Latest Honest Status HOT 3
- Cannot extend a lock that's no longer owned HOT 3
- Reschedule does not work correctly.
- New release? HOT 7
- The scheduler may publish task when acquiring the lock failure HOT 1
- Unable to Schedule Different Timezone per different task
- Celery 5.3.0rc1 not useable with redbeat anymore. HOT 3
- Redbeat doesn't work with celery 5.3.0 HOT 2
- Updated to 2.1.1 from 2.0.0 now it fails to run. HOT 6
- Retry did not work after (104, 'Connection reset by peer')
- The distributed lock set to None failed HOT 3
- Support for limit run option to avoid delay tasks that previous not finished
- tzinfo utcoffset taking None as parameter
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 redbeat.