Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to silently stop the archiver without an error #15724

Merged
merged 1 commit into from Mar 24, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Mar 23, 2020

Needing this for cloud. We're listening there to CronArchive.init.start event and under circumstances we may trigger an exception there to not archive any data.

The problem is, that this exception is passed on to the console command and then it returns exit code != 0 meaning we receive an email from crontab every time this happens.

Could have appended another parameter to the postEvent to specifically abort archiving in this event but wasn't sure if that could cause any issue breaking things in 3.X and using the exception you can technically abort the archiving at any time which may be helpful. Won't be an official feature though.

Tested this and worked nicely. We will be using this on Cloud already with 3.13.4 in a patch.

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Mar 23, 2020
@tsteur tsteur added this to the 3.13.5 milestone Mar 23, 2020
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tsteur tsteur merged commit 202187a into 3.x-dev Mar 24, 2020
@tsteur tsteur deleted the stoparchive branch March 24, 2020 21:21
@mattab mattab added Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. and removed Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. labels Apr 28, 2020
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
tsteur added a commit that referenced this pull request Sep 28, 2020
Was added in #15724 but somehow got lost if 4.x
tsteur added a commit that referenced this pull request Sep 28, 2020
Was added in #15724 but somehow got lost if 4.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants