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

core:archive add note message when continuing an existing queue #16765

Merged
merged 3 commits into from Dec 14, 2020

Conversation

diosmosis
Copy link
Member

Description:

Noticed core:archive no longer says when it's continuing an existing archive run (if it ever did). Found it confusing for it to just pick up a different queue locally, so thought this message might be useful.

Review

  • Functional review done
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@diosmosis diosmosis added the Needs Review PRs that need a code review label Nov 22, 2020
Copy link
Member

@tsteur tsteur left a comment

Choose a reason for hiding this comment

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

@diosmosis

getting this error because at this point it seems websiteIdArchiveList is not defined yet?

Uncaught exception: Error: Call to a member function isContinuingPreviousRun() on null in core/CronArchive.php:1005
Stack trace:
#0 core/CronArchive.php(295): Piwik\CronArchive->logArchiveTimeoutInfo()
#1 core/CronArchive.php(266): Piwik\CronArchive->init()

@@ -1001,6 +1000,11 @@ private function logArchiveTimeoutInfo()
$this->logger->info("- Archiving was last executed without error "
. $this->formatter->getPrettyTimeFromSeconds($dateLast, true) . " ago");
}


if ($this->websiteIdArchiveList->isContinuingPreviousRun()) {
Copy link
Member

Choose a reason for hiding this comment

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

@diosmosis not too important since we don't have it for any of the other methods in those classes but might make sense to add an interface to the sharedsiteids and fixedsiteids just to make sure those things are implemented (or could check if the method exists)

@tsteur tsteur added this to the 4.1.0 milestone Nov 22, 2020
@diosmosis
Copy link
Member Author

@tsteur updated

@diosmosis
Copy link
Member Author

@tsteur fyi, merged this one

@diosmosis diosmosis merged commit 14f852f into 4.x-dev Dec 14, 2020
@diosmosis diosmosis deleted the message-about-continuing branch December 14, 2020 01:31
@mattab mattab changed the title add note message when continuing an existing queue core:archive add note message when continuing an existing queue Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants