Both of these assumptions are incorrect. Please do not assume there's a single person managing an environment, and the fact the sequence is generated outside of the transaction that adds the action is a proof that actions will be arbitrarily executed rather than in the sequence suggested by the numbers.<br><br><div class="gmail_quote">On Fri Oct 24 2014 at 4:21:30 PM John Weldon <<a href="mailto:johnweldon4@gmail.com">johnweldon4@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Forgot to reply-all</div><div dir="ltr"><div><br clear="all"><div>---------- Forwarded message ----------<br></div><div class="gmail_quote">From: <b class="gmail_sendername">John Weldon</b> <span dir="ltr"><<a href="mailto:johnweldon4@gmail.com" target="_blank">johnweldon4@gmail.com</a>></span><br>Date: Fri, Oct 24, 2014 at 11:19 AM<br>Subject: Re: Actions :: UUID vs. Tag on command line<br>To: Gustavo Niemeyer <<a href="mailto:gustavo.niemeyer@canonical.com" target="_blank">gustavo.niemeyer@canonical.com</a>><br><br><br><div dir="ltr"><div class="gmail_extra"><span><br><div class="gmail_quote">On Fri, Oct 24, 2014 at 11:14 AM, Gustavo Niemeyer <span dir="ltr"><<a href="mailto:gustavo.niemeyer@canonical.com" target="_blank">gustavo.niemeyer@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="overflow:hidden">I doubt this would work. There's no way in the transaction package for you to generate an id and reference that same id in other fields in one go.<div><br></div><div>In other cases that's not an issue, but having a sequence of numbered actions where 10 is applied before 9 would be awkward.</div></div></blockquote></div><br><br></span>Interesting.</div><div class="gmail_extra"><br></div><div class="gmail_extra">1. The sequence is generated in a separate transaction before being used. (state/sequence.go)  So I don't think your concern about obtaining and using in one transaction will be an issue.</div><div class="gmail_extra">2. We have not had much discussion around strict ordering of actions being run in the order they were queued.  My impression is that two different users interacting with the system at the same time is a bit of an edge case.<br><br clear="all"><div>--<br>John Weldon</div>
</div></div>
</div><br></div></div>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/<u></u>mailman/listinfo/juju-dev</a><br>
</blockquote></div>