[
http://jira.magnolia.info/browse/MAGNOLIA-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280#action_16280
]
John Mettraux commented on MAGNOLIA-2162:
-----------------------------------------
My usecase is during activation. We had failures at activation for pages with
too big attachments. I have fixed those source of errors (covered in a previous
patch, using a temp file to determine beforehand the size of the POST body, we
also made sure to perform GC before activation for some of our deployments).
So now, activation is always OK for me but "boiled cat fears cold water". My
project manager really wants me to implement this retry pattern, so I wrapped
it into a command, I could have implemented that directly in the activation
process definition, but I wanted something more concise and as we have commons
chain mecha in Magnolia, why not leverage it.
I posted on the ML this piece of code that is not really useful for me in the
hope it could benefit someone else that has activation issues (network?) or
whatever other issue (after all, it can enable retry for any magnolia command).
If you guys don't feel the need for it, please reject this issue, no problem.
At least the code is accessible for Magnolians via the mailing list.
Have a nice day,
John
> TryCommand, a MgnlCommand for trying other mgnl commands
> --------------------------------------------------------
>
> Key: MAGNOLIA-2162
> URL: http://jira.magnolia.info/browse/MAGNOLIA-2162
> Project: Magnolia
> Issue Type: Improvement
> Components: admininterface
> Reporter: John Mettraux
> Assignee: Philipp Bracher
> Priority: Trivial
> Fix For: 3.6
>
> Attachments: tryactivate.png, TryCommand.java
>
>
> I've implemented a TryCommand, it's a magnolia command that tries a
> certain number of time to execute another command. It can try a
> certain number of times before calling it quit (see the example
> configuration in the PNG file).
> I didn't want the implementation of this retry logic to get into our
> publication workflow, so I stashed that into this command.
> Maybe it will be useful to someone else here.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------