composition of events?

31 views
Skip to first unread message

ssle...@vmware.com

unread,
Jun 23, 2016, 6:44:36 PM6/23/16
to circuits
Any way to initialize an event with a list of events. Then fire that off on a remote Node?

Remote Node then fires off each of the provided events?

James Mills

unread,
Jun 23, 2016, 8:27:33 PM6/23/16
to circuit...@googlegroups.com
Good question. I don't think we thought of this particular use-case;
however I believe it could be useful.

What's your specific use-case here?

cheers
James
On Thu, Jun 23, 2016 at 2:32 PM, <ssle...@vmware.com> wrote:
Any way to initialize an event with a list of events. Then fire that off on a remote Node?

Remote Node then fires off each of the provided events?

--
You received this message because you are subscribed to the Google Groups "circuits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to circuits-user...@googlegroups.com.
To post to this group, send email to circuit...@googlegroups.com.
Visit this group at https://groups.google.com/group/circuits-users.
For more options, visit https://groups.google.com/d/optout.

ssle...@vmware.com

unread,
Jun 24, 2016, 1:23:38 PM6/24/16
to circuits
I want to create an RPC server with some set of fundamental operations implemented by Events. Then I want to create a Sequence wrapper event that will take a generic series of Events, execute them one by one and return (or in a loop, or whatever). So: enabling on-the-fly workflows through events.

James Mills

unread,
Jun 24, 2016, 1:31:01 PM6/24/16
to circuit...@googlegroups.com
Hmm my advice at this point since I'm not quite clear on what you're trying to achieve... Is to try it out yourself and see how well it works :) Distributed eventing is not so trivial and I've re-implemented circuits.node myself in autodock[1] without merging any improvements/changed so far.

I don't think it's terribly hard to achieve what you've described though; but also feel free to write up an Issue[2] that clearly describe what you're after and your goal :)

cheers
James


ssle...@vmware.com

unread,
Jun 24, 2016, 2:20:49 PM6/24/16
to circuits
Okay will try. I ran into one issue:

e = SequenceEvent(childEvent("test param"))
r = remote(e, "remoteTestNode")

self.fire(r)

It errored while trying to serialize the child event. Any thoughts on a workaround?

James Mills

unread,
Jun 24, 2016, 2:23:09 PM6/24/16
to circuit...@googlegroups.com
Probably something special about your child event subclass.

Can you pickle..dumps() it correctly? If not that's where the problem *may* lie. Although (without looking a the circuits.node code) I'm uncertain as to whether we use pickle or json here; But there are two things you can look at!

Let me know :)

cheers
James

ssle...@vmware.com

unread,
Jun 24, 2016, 2:35:52 PM6/24/16
to circuits
Okay let me play around -- I appreciate your attention.

Thanks

James Mills

unread,
Jun 24, 2016, 2:37:45 PM6/24/16
to circuit...@googlegroups.com
No problems! I'll be able to look into this a bit more when I finish work :)

For now see if you can work out what's going on there

and please do feel free to file an issue syou find against our issue tracker
as we'll be releasing circuits-3.2.1 very soon!

cheers
james
Reply all
Reply to author
Forward
0 new messages