Skip to content

Commit 470d3f7

Browse files
committed
Tasks no longer need to know the jobUUID
1 parent 4e0796f commit 470d3f7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

benchmarks/BenchLinearSongAgg/SongAgg.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ computeResult inputs jobUUID = do
324324
aggArtistsEmptyVar <- empty aggATaskUUID jobUUID
325325
aggSongsEmptyVar <- empty aggSTaskUUID jobUUID
326326

327-
(Right aggArtists) <- runExceptT (aggArtistsF nilJobUUID inputs aggArtistsEmptyVar)
328-
(Right aggSongs ) <- runExceptT (aggSongsF nilJobUUID inputs aggSongsEmptyVar)
327+
(Right aggArtists) <- runExceptT (aggArtistsF inputs aggArtistsEmptyVar)
328+
(Right aggSongs ) <- runExceptT (aggSongsF inputs aggSongsEmptyVar)
329329

330330
let artists = HCons' aggArtistsEmptyVar HNil'
331331
let songs = HCons' aggSongsEmptyVar HNil'
@@ -338,8 +338,8 @@ computeResult inputs jobUUID = do
338338
top10ArtistsEmptyVar <- empty top10ATaskUUID jobUUID
339339
top10SongsEmptyVar <- empty top10STaskUUID jobUUID
340340

341-
(Right ac) <- runExceptT (top10ArtistsF nilJobUUID artists top10ArtistsEmptyVar)
342-
(Right tc) <- runExceptT (top10SongsF nilJobUUID songs top10SongsEmptyVar)
341+
(Right ac) <- runExceptT (top10ArtistsF artists top10ArtistsEmptyVar)
342+
(Right tc) <- runExceptT (top10SongsF songs top10SongsEmptyVar)
343343

344344
return (top10ArtistsEmptyVar, top10SongsEmptyVar)
345345

src/Pipeline/Internal/Backend/BasicNetwork.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ taskExecuter (Task f) taskUUID inPipes outPipes = forever
6969
(do
7070
outputStore <- lift (empty taskUUID jobUUID)
7171
input <- (ExceptT . return) taskInputs
72-
catchE (intercept (f jobUUID input outputStore))
72+
catchE (intercept (f input outputStore))
7373
(throwE . TaskError . ExceptionMessage . displayException)
7474
return (HCons' outputStore HNil')
7575
)

src/Pipeline/Internal/Core/CircuitAST.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ data Task (iF :: [Type -> Type] -> [Type] -> [Type] -> [Type -> Type] -> [Type]
108108
outputsS ~ '[g'], outputsT ~ '[b'], outputsA ~ '[g' b'],
109109
DataStore' inputsS inputsT,
110110
DataStore g' b', Eq (g' b'))
111-
=> (JobUUID -> HList' inputsS inputsT -> g' b' -> ExceptT SomeException IO ())
111+
=> (HList' inputsS inputsT -> g' b' -> ExceptT SomeException IO ())
112112
-> Task iF inputsS inputsT (Apply inputsS inputsT) outputsS outputsT outputsA (Length inputsS)
113113

114114

src/Pipeline/Task.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ multiInputTask
4949
multiInputTask f = IIn7
5050
(inj
5151
(Task
52-
(\uuid sources sink -> do
52+
(\sources sink -> do
5353
input <- lift (fetch' sources)
5454
let outputValue = f input
5555
!outputValue' = outputValue `deepseq` outputValue
@@ -89,6 +89,6 @@ functionTask f = multiInputTask (\(HCons inp HNil) -> f inp)
8989
-- | Constructor for a task
9090
task
9191
:: (DataStore' fs as, DataStore g b, Eq (g b), Show (g b), NFData (g b))
92-
=> (JobUUID -> HList' fs as -> g b -> ExceptT SomeException IO ()) -- ^ The function a Task will execute.
92+
=> (HList' fs as -> g b -> ExceptT SomeException IO ()) -- ^ The function a Task will execute.
9393
-> Circuit fs as (Apply fs as) '[g] '[b] '[g b] (Length fs)
9494
task f = IIn7 (inj (Task f))

0 commit comments

Comments
 (0)