There is lazy and there is also "I just based in that other worker" which happens, I am the proud parent of statushistorypruner and a rewrite is underway too, sorry.<br><br>On Tuesday, September 8, 2015, Tim Penhey <<a href="mailto:tim.penhey@canonical.com">tim.penhey@canonical.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09/09/15 11:22, Andrew Wilkins wrote:<br>
> On Wed, Sep 9, 2015 at 6:14 AM Ian Booth <<a href="javascript:;" onclick="_e(event, 'cvml', 'ian.booth@canonical.com')">ian.booth@canonical.com</a><br>
> <mailto:<a href="javascript:;" onclick="_e(event, 'cvml', 'ian.booth@canonical.com')">ian.booth@canonical.com</a>>> wrote:<br>
><br>
>     Those workers below aren't the only ones. There's also minunits and<br>
>     peergrouper<br>
>     workers.<br>
><br>
>     No-one does these things on purpose. Just last week I caught and<br>
>     rejected a pull<br>
>     request to introduce a new worker depending on state directly.<br>
>     People make<br>
>     mistakes. Perhaps we should introduce a test which fails if state is<br>
>     imported<br>
>     into any worker code. We have similar tests already for other<br>
>     forbidden imports.<br>
><br>
><br>
> +1. I was thinking the same thing, and eventually that test should be<br>
> increased to other packages too.<br>
<br>
Let's be honest, developers are lazy. When under pressure to land<br>
things, they go and look for the simplest way to get something done.<br>
<br>
The problem has been that we didn't shout loud enough early enough that<br>
there were to be "NO MORE STATE WORKERS", and what's more, making it a<br>
priority to change the existing ones to api workers.<br>
<br>
In case any one missed it, "NO MORE STATE WORKERS". Onyx will take the<br>
dblogpruner and txnpruner as we added those, and Menno already mentioned<br>
this.<br>
<br>
Bugs have been filed for the five workers using *state.State directly,<br>
and have been added to the tech-debt kanban board.<br>
<br>
<a href="https://canonical.leankit.com/Boards/View/116651667#workflow-view" target="_blank">https://canonical.leankit.com/Boards/View/116651667#workflow-view</a><br>
<br>
Tim<br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Juju-dev@lists.ubuntu.com')">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/mailman/listinfo/juju-dev</a><br>
</blockquote>