Add method to spawn task for processing all matches
Some checks are pending
ci / docker (push) Waiting to run
Some checks are pending
ci / docker (push) Waiting to run
This commit is contained in:
parent
be2f02560c
commit
3c817b910a
@ -9,4 +9,10 @@ defmodule LolAnalytics.MatchesProcessor do
|
||||
LolAnalytics.Facts.FactsRunner.analyze_by_patch(patch)
|
||||
end)
|
||||
end
|
||||
|
||||
def proccess_all_matches() do
|
||||
Task.Supervisor.async(LoLAnalytics.TaskSupervisor, fn ->
|
||||
LolAnalytics.Facts.FactsRunner.analyze_all_matches()
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user