-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delayed Reaction Agent (Scheduling Events in the Future) #174
Comments
I was going through a similar thought exercise today and thought that a |
Hey @qedi-r and @snicker: interesting use case! rufus-scheduler, which is what we use for |
Right now I am thinking an agent like this should be scheduled automatically, which is just a fancy way of saying a schedule of 2m, with a guard at the top of the agent's check that returns if we have figured out when the next sunrise and sunset are, and schedule those events properly. I was investigating using the delayed_job gem we are using for async agents, but that doesn't quite feel right -- having access to rufus from an agent would make more sense to me. |
I did something like this using the JavaScriptAgent, but it's ugly. I like the idea of a The relevant JavaScriptAgent that I use filters the results from a PublicTransportAgent so that they only arrive during my morning commute. The JavaScriptAgent has a Credential called
and then the Agent itself is just
|
Ref: #197 |
I've just found that I have a use case for this as well: Say an every happens, and I want to trigger another agent two minutes after it happens. And maybe another agent five minutes after that if they're chained (or in parallel and just happen to act like they are). Maybe it consumes the event it's or in received, maybe it emits its item payload as an event. It would certainly save a lot of shell script hackery with --delay= if nothing else. |
This seems like a pretty simple agent to add. |
We have a DelayAgent now. |
I'm currently implementing a Weatherunderground Astronomy agent, so that I can trigger things based on sundown/sunrise, so I was wondering what is the best way to schedule events for some time in the future.
If say I knew that sundown was going to be at 6:04 pm, how could I schedule my agent from creating an event then?
The text was updated successfully, but these errors were encountered: