50 Commits
Author SHA1 Message Date
sashakoshka a03f6a70a4 actors: Add pre-made HTTP actors 2025-12-29 15:58:33 -05:00
sashakoshka 0a4cc1143e Assorted bug fixes 2025-12-29 15:57:39 -05:00
sashakoshka a58b5932e7 Fix actors added during initialization process being run twice
Also broke out the emergency halt process into a new function,
which is also now ALWAYS called 16 minutes after sigint has been
pressed, regardless if the shutdown even began in the first place.
2025-11-26 11:46:53 -05:00
sashakoshka 5d25b3fb9a Main-locked threads are panic wrapped 2025-11-24 19:43:25 -05:00
sashakoshka f97f5010e2 Remove actors added through Add if they fail to initialize/config 2025-11-24 19:41:48 -05:00
sashakoshka 8f8d2e13b3 Change "stopped with error" symbol from warn to fatal 2025-11-24 10:40:41 -05:00
sashakoshka 4cef5df83e Don't print duplicate stack traces/errors when things crash 2025-11-24 10:38:44 -05:00
sashakoshka 32c8e7f7c3 Add MainRunnable interface for locking to the main thread 2025-11-24 10:21:41 -05:00
sashakoshka f0611e53ce examples/panic: Make the actor resettable 2025-11-23 13:41:05 -05:00
sashakoshka c0064323d8 Don't attempt to restart non-resettable actors 2025-11-23 13:38:54 -05:00
sashakoshka eca2b35057 Fix crash when deleting an actor 2025-09-17 20:55:33 -04:00
sashakoshka d34af2c4ee Add Cleanupable interface
The Cleanup method is called on actors when they exit
2025-09-17 20:45:01 -04:00
sashakoshka e21cd9ed11 The cron actor now respects --fast-timing 2025-09-17 17:03:27 -04:00
sashakoshka 70dc9702bd Add a --fast-timing option to make things happen sooner
The smaller time scale is better for debugging
2025-09-17 14:54:12 -04:00
sashakoshka 613e21597b Add a --crash-on-error flag to crash whenever an actor returns err 2025-09-17 11:36:12 -04:00
sashakoshka 126374fbac Print stack trace of all goroutines when emergency halting if verbose 2025-09-15 20:40:08 -04:00
sashakoshka 02f06d857e Fix deadlock when deleting actors 2025-09-14 19:22:42 -04:00
sashakoshka 3d25441e7a Log config file paths after the --config one is added 2025-05-21 15:24:23 -04:00
sashakoshka 735d314a19 examples/panic: Make an example to show off aforementioned feature 2025-05-21 13:50:34 -04:00
sashakoshka 4f4c7a0627 Print stack trace when actors panic 2025-05-21 13:50:16 -04:00
sashakoshka 461d0b77e9 Print out all config file paths on startup 2025-05-21 09:49:44 -04:00
sashakoshka 861d6af1d7 Add --crash flag to crash and print stack trace on panic 2025-04-08 10:29:27 -04:00
sashakoshka ac2db05d06 Fix local config path 2025-03-10 01:38:17 -04:00
sashakoshka f4904884ad Improve named actor interface 2025-03-09 01:56:09 -05:00
sashakoshka 7d0620fe3e Fix system config file path 2025-03-09 01:55:11 -05:00
sashakoshka 3115c5feef Actors are formatted better when logged 2025-03-09 01:54:53 -05:00
sashakoshka 10ca4f4671 Add "named" actor interface 2025-02-05 16:49:27 -05:00
sashakoshka e0c8825949 Clarify documentation for Actor 2025-01-31 17:26:45 -05:00
sashakoshka b12ffdb0a0 Say *why* an actor failed 2025-01-30 21:12:55 -05:00
sashakoshka bfca8c6f4a Fix util_test.go 2025-01-30 19:59:25 -05:00
sashakoshka 641624ef3b examples/broken: Demonstrate new fix working 2025-01-30 19:58:11 -05:00
sashakoshka bae737e6b8 Environment exits if shutdown takes too long 2025-01-30 19:57:40 -05:00
sashakoshka 0077a5d115 examples/http: Fix logging 2025-01-30 19:39:37 -05:00
sashakoshka 772e9ca290 examples/http: Add HTTP example to demonstrate RunShutdownable 2025-01-30 19:30:07 -05:00
sashakoshka 5e38cec135 Environment now actually runs RunShutdownable actors 2025-01-30 19:29:39 -05:00
sashakoshka 326db33ecc Environment can now run RunShutdownable actors 2025-01-30 19:29:23 -05:00
sashakoshka dc7c7b5c73 Add variation of panicWrap that does not take in a context 2025-01-30 19:29:02 -05:00
sashakoshka 1133e261bf Add support for RunShutdownable to actorSet 2025-01-30 19:28:33 -05:00
sashakoshka b4c55decc6 Document RunShutdownable in Run 2025-01-30 18:28:16 -05:00
sashakoshka 2cb1e5cb3a Clarify temporal semantics for RunShutdownable.Shutdown 2025-01-30 18:27:37 -05:00
sashakoshka bbe833bb53 Add the RunShutdowner actor interface 2025-01-30 15:54:13 -05:00
sashakoshka e1ccb4d6e8 Fix phase logging 2025-01-30 15:27:34 -05:00
sashakoshka b026250cab mock: Fix tests 2025-01-30 15:27:23 -05:00
sashakoshka 7e5a78fef7 mock: Add mock config interface 2025-01-28 13:45:48 -05:00
sashakoshka ea41137c9c Add .editorconfig, LICENSE 2025-01-28 11:03:35 -05:00
sashakoshka b7f9873c76 Add godoc link in README.md 2025-01-28 11:03:05 -05:00
sashakoshka 665b915bf7 Update go-util 2025-01-28 11:01:05 -05:00
sashakoshka 97f73be050 Change exit codes 2024-12-31 01:36:29 -05:00
sashakoshka 4a88d3a38c assets: Remove icon.png 2024-12-31 01:31:07 -05:00
sashakoshka b3913d8078 Initial commit 2024-12-31 01:27:53 -05:00