* 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>
12 lines
317 B
Plaintext
12 lines
317 B
Plaintext
import "pkg:/components/Services/SponsorBlock/SponsorBlockService.bs"
|
|
|
|
@job("SponsorBlockSegmentViewedJob")
|
|
function ExecuteJob()
|
|
input = JobGetInput()
|
|
|
|
segmentId = input.segmentId
|
|
service = new SponsorBlock.SponsorBlockService()
|
|
|
|
service.PostSegmentViewed(segmentId, m.top.cancellation)
|
|
end function
|