Commit 64f6ceaa authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

CMFActivity: support Zope4 ZMI

parent ab3ff736
...@@ -29,63 +29,65 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -29,63 +29,65 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var manage_tabs> <dtml-var manage_tabs>
<main class="container-fluid">
<h3>Queued Activities</h3> <h3>Queued Activities</h3>
<dtml-let show_cancel_and_invoke_links="not isCancelAndInvokeLinksHidden()"> <dtml-let show_cancel_and_invoke_links="not isCancelAndInvokeLinksHidden()">
<dtml-if show_cancel_and_invoke_links> <dtml-if show_cancel_and_invoke_links>
<p>Warning: Invoking or canceling activities will invoke/cancel all activities with both the same path and the same method_id.</p> <p class="lead">Warning: Invoking or canceling activities will invoke/cancel all activities with both the same path and the same method_id.</p>
<p>Warning: Invoking an activity will <b>not</b> run any dependency check.</p> <p class="lead">Warning: Invoking an activity will <b>not</b> run any dependency check.</p>
</dtml-if> </dtml-if>
<table cellspacing="0" cellpadding="2" border="1"> <table class="table table-striped table-hover table-sm"
<tr> <tr>
<dtml-if show_cancel_and_invoke_links> <dtml-if show_cancel_and_invoke_links>
<th align="left" valign="top"></th> <th></th>
</dtml-if> </dtml-if>
<th align="left" valign="top">Uid</th> <th>Uid</th>
<th align="left" valign="top">Object</th> <th>Object</th>
<th align="left" valign="top">Method Id</th> <th>Method Id</th>
<th align="left" valign="top">Activity Kw</th> <th>Activity Kw</th>
<th align="left" valign="top">Arguments</th> <th>Arguments</th>
<th align="left" valign="top">Named Parameters</th> <th>Named Parameters</th>
<th align="left" valign="top">Processing Node</th> <th>Processing Node</th>
<th align="left" valign="top">Retry</th> <th>Retry</th>
<th align="left" valign="top">Call Traceback</th> <th>Call Traceback</th>
</tr> </tr>
<dtml-in expr="getMessageList()"> <dtml-in expr="getMessageList()">
<dtml-let path="'/'.join(object_path)"> <dtml-let path="'/'.join(object_path)">
<tr> <tr>
<dtml-if show_cancel_and_invoke_links> <dtml-if show_cancel_and_invoke_links>
<td align="left" valign="top"> <td>
<a href="manageCancel?object_path=&dtml-path;&amp;method_id=&dtml-method_id;">Cancel</a> <a class="btn btn-danger" href="manageCancel?object_path=&dtml-path;&amp;method_id=&dtml-method_id;">Cancel</a>
<a href="manageInvoke?object_path=&dtml-path;&amp;method_id=&dtml-method_id;">Invoke</a> <a class="btn btn-warning" href="manageInvoke?object_path=&dtml-path;&amp;method_id=&dtml-method_id;">Invoke</a>
</td> </td>
</dtml-if> </dtml-if>
<td align="left" valign="top"><dtml-var uid> <td><dtml-var uid>
<dtml-var expr="{'SQLDict':'(dict)','SQLQueue':'(queue)','SQLJoblib':'(Joblib)'}[activity]"> <dtml-var expr="{'SQLDict':'(dict)','SQLQueue':'(queue)','SQLJoblib':'(Joblib)'}[activity]">
</td> </td>
<td align="left" valign="top"><a href="<dtml-var expr="REQUEST.physicalPathToURL(path)">"><dtml-var path></a></td> <td><code><a href="<dtml-var expr="REQUEST.physicalPathToURL(path)">"><dtml-var path></a></code></td>
<td align="left" valign="top"><dtml-var method_id></td> <td><code><dtml-var method_id></code></td>
<td align="left" valign="top"> <td>
<dtml-if activity_kw><dtml-var expr="_.repr(activity_kw)[1:-1]" html_quote> <dtml-if activity_kw><small><pre><dtml-var expr="_.repr(activity_kw)[1:-1]" html_quote></pre></small>
<dtml-else>&nbsp; <dtml-else>&nbsp;
</dtml-if> </dtml-if>
</td> </td>
<td align="left" valign="top"> <td>
<dtml-if args><dtml-var expr="_.repr(_.list(args))[1:-1]" html_quote> <dtml-if args><small><pre><dtml-var expr="_.repr(_.list(args))[1:-1]" html_quote></pre></small>
<dtml-else>&nbsp; <dtml-else>&nbsp;
</dtml-if> </dtml-if>
</td> </td>
<td align="left" valign="top"> <td>
<dtml-if kw><dtml-var expr="_.repr(kw)[1:-1]" html_quote> <dtml-if kw><small><pre><dtml-var expr="_.repr(kw)[1:-1]" html_quote></pre></small>
<dtml-else>&nbsp; <dtml-else>&nbsp;
</dtml-if> </dtml-if>
</td> </td>
<td align="left" valign="top"><dtml-var processing_node></td> <td><dtml-var processing_node></td>
<td align="left" valign="top"><dtml-var retry></td> <td><dtml-var retry></td>
<td align="left" valign="top"> <td>
<dtml-if expr="call_traceback is not None"> <dtml-if expr="call_traceback is not None">
<pre><dtml-var call_traceback></pre> <small><pre><dtml-var call_traceback></pre></small>
</dtml-if> </dtml-if>
</td> </td>
</tr> </tr>
...@@ -93,5 +95,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -93,5 +95,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
</dtml-in> </dtml-in>
</table> </table>
</dtml-let> </dtml-let>
</main>
<dtml-var manage_page_footer> <dtml-var manage_page_footer>
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var manage_tabs> <dtml-var manage_tabs>
<br /> <main class="container-fluid">
<form action="&dtml-URL1;"> <form action="&dtml-URL1;">
<table width="100%" cellspacing="0" cellpadding="2" border="0"> <table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="section-bar"> <tr class="section-bar">
...@@ -124,4 +125,5 @@ ...@@ -124,4 +125,5 @@
</td> </td>
</tr> </tr>
</table> </table>
</main>
<dtml-var manage_page_footer> <dtml-var manage_page_footer>
...@@ -28,8 +28,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -28,8 +28,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<dtml-var manage_page_header> <dtml-var manage_page_header>
<dtml-var manage_tabs> <dtml-var manage_tabs>
<main class="container-fluid">
<p class="form-help"> <p class="form-help leap">
This tab defines the Load Balancing of Activities. This tab defines the Load Balancing of Activities.
To provide high performance, the activities are distributed over several ZEO clients, called <i>nodes</i>, To provide high performance, the activities are distributed over several ZEO clients, called <i>nodes</i>,
so that they can be processed in parallel. Nodes can either run on different machines or on one machine so that they can be processed in parallel. Nodes can either run on different machines or on one machine
...@@ -38,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -38,7 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<code>IP-Address</code>:<code>Port-Number</code>. <code>IP-Address</code>:<code>Port-Number</code>.
</p> </p>
<p class="form-help"> <p class="form-help leap">
The interval of distribution and activation of the activities is per default 5 seconds. This can be The interval of distribution and activation of the activities is per default 5 seconds. This can be
changed by altering the value of <i>interval</i> in the section <i>time-server</i> in the changed by altering the value of <i>interval</i> in the section <i>time-server</i> in the
Zope Configuration File <i>zope.conf</i>. Zope Configuration File <i>zope.conf</i>.
...@@ -193,13 +194,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -193,13 +194,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
</table> </table>
</td> </td>
<td> <td>
<p class="form-help"> <p class="form-help leap">
Every node sharing the same ZODB will register itself to the idle Every node sharing the same ZODB will register itself to the idle
node list - except the first one which will be automatically declared node list - except the first one which will be automatically declared
both <i>Processing node</i> and <i>Distributing node</i>. Registered both <i>Processing node</i> and <i>Distributing node</i>. Registered
nodes can then be made <i>Processing nodes</i> or <i>Idle nodes</i>. nodes can then be made <i>Processing nodes</i> or <i>Idle nodes</i>.
</p> </p>
<p class="form-help"> <p class="form-help leap">
<b>Important note:</b> Nodes can register themselves, but can not <b>Important note:</b> Nodes can register themselves, but can not
unregister themselves (for example, a node which IP has changed will unregister themselves (for example, a node which IP has changed will
be present twice in the list). It is up to the user to manually prune be present twice in the list). It is up to the user to manually prune
...@@ -207,7 +208,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -207,7 +208,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<i>Processing node</i> list, activities will get balanced to those <i>Processing node</i> list, activities will get balanced to those
nodes and never be executed. nodes and never be executed.
</p> </p>
<p class="form-help"> <p class="form-help leap">
<b>Important note:</b>Adding or removing processing nodes while <b>Important note:</b>Adding or removing processing nodes while
activities are processed causes undefined behaviour. activities are processed causes undefined behaviour.
</p> </p>
...@@ -288,4 +289,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -288,4 +289,5 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
</tr> </tr>
</table> </table>
</form> </form>
</main>
<dtml-var manage_page_footer> <dtml-var manage_page_footer>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment