Page MenuHomeIn-Portal Phabricator

INP-1804 - Don't reset current user after all Scheduled Tasks were executed
Needs RevisionPublic

Authored by alex on May 13 2021, 4:33 AM.

Details

Reviewers
erik
Test Plan
  1. login to Admin Console
  2. go to ConfigurationWebsiteAdvanced section
  3. enable Use Cron to run Scheduled Tasks setting and save changes
  4. in IDE change contents of \AdminEventsHandler::OnBeforeShutdown method (file: core/units/admin/admin_events_handler.php) to be die('user_id: ' . $this->Application->RecallVar('user_id')); and save changes
  5. execute php tools/cron.php from root folder of a project
  6. confirm, that you'll see either user_id: -1 or user_id: -3 as output of that script

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 1043
Build 1043: arc lint + arc unit

Event Timeline

alex created this revision.May 13 2021, 4:33 AM
alex requested review of this revision.May 13 2021, 4:33 AM
Harbormaster completed remote builds in B1043: Diff 1015.
alex added a project: Restricted Project.May 13 2021, 4:33 AM
erik requested changes to this revision.May 18 2021, 5:09 AM

No output detected after doing test plan.

This revision now requires changes to proceed.May 18 2021, 5:09 AM