Commit Graph

23 Commits

Author SHA1 Message Date
augustin_s 653f8d942e removed test code from prototyping 2021-03-09 18:56:50 +01:00
augustin_s 2c428e52cc made name of entry function configurable (defaults to run); adjusted MissingRunFunctionError -> MissingEntryFunctionError 2021-02-15 11:12:23 +00:00
augustin_s c31a953baf slightly cleaner 2021-02-08 13:13:46 +00:00
augustin_s 3d576b116a better errors 2021-02-08 13:13:24 +00:00
augustin_s 76debb28e7 slightly cleaner 2021-02-08 13:13:01 +00:00
augustin_s 8f849975c5 Module.start raises on missing func; Module.kill kills Task if available; Module.get_mtime returns None of file is missing instead of raising error; added try/except/print to ModuleManager._run_all; added module killing when removing module from cache; slowed down the output 2021-02-08 10:58:03 +00:00
augustin_s 6d6b4e0d51 add killthread function, make Task killable; Task daemonizes per default 2021-02-08 10:54:04 +00:00
augustin_s b565c46178 ignore ignore; add infinite loop test that catched KeyboardInterrupt 2021-02-08 10:53:15 +00:00
augustin_s 8cc3210109 add tabs to printing in the test 2021-02-08 10:46:52 +00:00
augustin_s 645140add7 added running the script to Module, all are ran by ModuleManager 2021-02-08 10:06:51 +00:00
augustin_s 338a14d3cb added infinite loop test script 2021-02-08 10:05:13 +00:00
augustin_s 089da79074 switched to Module class 2021-02-07 19:00:54 +00:00
augustin_s a3f68ec37d copy scripts 2021-02-07 16:27:41 +00:00
augustin_s 82deee8165 use Executor 2021-02-06 20:19:37 +00:00
augustin_s 8aebb82882 added Executor that knows its futures 2021-02-06 20:18:32 +00:00
augustin_s 894e97d1ca instead of waiting for all futures to end in each iteration, go to next iteration and don't start another of a still running one 2021-02-06 19:02:55 +00:00
augustin_s 6d1a06f7f9 test long sleeping 2021-02-06 18:33:26 +00:00
augustin_s 39d66d86e6 handle delete scripts 2021-02-06 18:33:08 +00:00
augustin_s f31d1cf2ce moved ModuleManager to separate file 2021-02-06 13:57:36 +00:00
augustin_s a3bc256c28 ModuleManager reloads only if file's mtime changed 2021-02-06 13:46:49 +00:00
augustin_s 296c091ef7 convert function to class 2021-02-06 13:22:48 +00:00
augustin_s 3a4b24f52d some error handling 2021-02-06 13:10:55 +00:00
augustin_s 13ab316144 prototype 2021-02-06 12:40:18 +00:00