0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
Commit Graph

6 Commits

Author SHA1 Message Date
Karl-Aksel Puulmann
18535faef7
refactor(plugin-server): refactor the event pipeline (#9829)
* Start refactoring event pipeline

* Add some initial metrics

* Handle DLQ error messages in pipeline runner

* Add public functions for the pipeline

* Tests for runner.ts

* Tests for every step in event pipeline

* yeet some now-unneeded worker code

* Add timeoutGuard

* Emit to DLQ from buffer

* Move some tests to a separate file

* fix internal metrics

* Refactor method location, WIP

* Fix code determining if user is a recent person or not

* Update tests to deal with new pipeline

* Rename methods for consistency

* Remove now-dead test

* Update process-event.test.ts

* Update DLQ test

* Ignore test under yeet

* Remove mocked

* Remove dead code

* Update naming
2022-05-20 13:05:32 +03:00
Karl-Aksel Puulmann
6c637397fc
refactor(plugin-server): extract capabilities for VMs and plugin server (#9714)
* Extract calculation method from vm/lazy.ts

* Add tests for capabilities.ts

* Move capabilities.ts under vm which it's more closely tied to

* Add (blank) capabilities object to hub

This will be used to check whether to start certain jobs

* Don't start plugin scheduled tasks unless have the capabilities

* scheduledTasks => pluginScheduledTasks in capabilities

* Cancel all jobs on schedule exit

* Remove capabilities code from services/schedule.ts

* scheduleControl => pluginScheduleControl

* Flip conditional

* Do less manual cleanup

* Add test for stopping node-schedule at exit

* Move cancelAllScheduledJobs

* Test capabilities check in server.test.ts

* Capabilities check for jobs

* Improve comment

* Rename method

* Rename jobs => processJobs

* Fix failed import
2022-05-11 09:01:54 +03:00
Yakko Majuri
77a3790abf
chore(plugin-server-tests): refactor tests to use a top-level describe (#8955) 2022-03-10 11:18:24 +00:00
James Greenhill
434e379f9a Add 'plugin-server/' from commit '01a99a4e26b0b11f068a7073d6b94e53a7214d33'
git-subtree-dir: plugin-server
git-subtree-mainline: 776b056b6d
git-subtree-split: 01a99a4e26
2021-10-28 14:59:19 -07:00
James Greenhill
145937a435
Revert "Monorepo with updated history" 2021-10-28 14:55:17 -07:00
James Greenhill
65512ae16f
Pack up plugin-server for moving 2021-10-12 15:45:42 -07:00