Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve async runtime scaling #946

Merged
merged 18 commits into from
Aug 23, 2023
Prev Previous commit
Next Next commit
Stub: async scheduler
  • Loading branch information
jaspervdj committed Aug 4, 2022
commit 0e1dcf2519c8e8073f9332a6eeaa56c509efbefb
8 changes: 4 additions & 4 deletions lib/Hakyll/Core/Runtime.hs
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ work id' compiler = do
schedulerError (Just id') msg
return SchedulerError

CompilerSnapshot snapshot c -> do
CompilerSnapshot snapshot c ->
liftIO . IORef.atomicModifyIORef' scheduler $
schedulerSnapshot id' snapshot c
schedulerSnapshot id' snapshot c

CompilerDone (SomeItem item) cwrite -> do
-- Print some info
Expand Down Expand Up @@ -471,6 +471,6 @@ work id' compiler = do
liftIO . IORef.atomicModifyIORef' scheduler $
schedulerWrite id' facts

CompilerRequire reqs c -> do
CompilerRequire reqs c ->
liftIO . IORef.atomicModifyIORef' scheduler $
schedulerBlock id' reqs c
schedulerBlock id' reqs c