Comments (1)
Likely instead of having a hook for rescheduling:
reactor/lib/reactor/models/concerns/publishable.rb
Lines 31 to 47 in f41266a
We would make it so scheduled events could abort by updating the need_to_fire
logic to care about scheduling as well as the generic "ifarg" logic:
Lines 24 to 37 in 8c68156
In theory, if we queue a job with Reactor data including the attribute we're watching to schedule and current value, then we can check the value is still equal to the most recent value when the actor gets hydrated:
Line 25 in 8c68156
In publishable, we use the :at
param and call that method to get the value - we could save :at_attribute
as the actual attribute so we can compute this check on
from reactor.
Related Issues (16)
- Break readme up into wiki pages
- introduce ActionMailer mixin HOT 2
- robust rspec matchers HOT 7
- Reactor "future-publishing-jobs" HOT 17
- changing dependencies from sidekiq to activejob HOT 6
- document `action_event` HOT 6
- dynamically named worker classes can cause inconsistency HOT 1
- can't supply a 'data' key to an event HOT 4
- stub out tests correctly HOT 1
- publishes implementation firing erroneously HOT 1
- prevent registration of subscribers with no block
- RFC: UUIDs on events HOT 3
- Test Helper Improvement: Reschedule
- Defining 1.0 HOT 1
- #deliver_now is never a function on Mail::Message
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 reactor.