Add Job System (#656)

* Add Job System

* Remove testing stuff

* changelog

* plugin work

* Convert a couple more jobs

* simplify callback

* assert

* Logging changes and rendezvous perf

* changelog

* sb segment viewed job

* clear cache, and few changes

* Lint fix

* a couple more jobs

* reduce rendezvous in web server

* refactor

* Lint fix

* no message

* test shutdown

* comment

* free fields

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2025-06-17 20:13:48 -04:00
1 parent 45983a67af
commit d70a07049a
74 files changed
+1090 -298

No files matched your search

@@ -23,18 +23,22 @@ function StopServer(_unused as dynamic) as void
m.top.shouldQuit = true
end function
function CreateSettings(messagePort as object) as object
settings = new Http.HttpSettings(messagePort)
settings.MaxConnections = 10
settings.MaxRequestLength = 2097152
settings.PackageName = "Playlet"
settings.Port = 8888
settings.ServerName = "Playlet Web Server"
settings.TimeoutInMs = 30000
settings.WebSocketsEnabled = false
return settings
end function
function WebServerLoop() as void
msgPort = CreateObject("roMessagePort")
settings = new Http.HttpSettings(msgPort)
settings.MaxConnections = m.top.maxConnections
settings.MaxRequestLength = m.top.maxRequestLength
settings.PackageName = m.top.packageName
settings.Port = m.top.port
settings.ServerName = m.top.serverName
settings.TimeoutInMs = m.top.timeoutInMs
settings.WebSocketsEnabled = m.top.webSocketsEnabled
settings = CreateSettings(msgPort)
server = new Http.HttpServer(settings, m.top)
if not server.success
m.top.isRunning = false