Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iTasks-SDK
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
73
Issues
73
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
iTasks-SDK
Commits
5d1d99c7
Commit
5d1d99c7
authored
Jul 02, 2018
by
Bas Lijnse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added better cleanup after exceptions to parallel combinator
parent
733f007a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
158 additions
and
111 deletions
+158
-111
Libraries/iTasks/Internal/TaskStore.dcl
Libraries/iTasks/Internal/TaskStore.dcl
+1
-0
Libraries/iTasks/Internal/TaskStore.icl
Libraries/iTasks/Internal/TaskStore.icl
+5
-2
Libraries/iTasks/WF/Combinators/Core.icl
Libraries/iTasks/WF/Combinators/Core.icl
+152
-109
No files found.
Libraries/iTasks/Internal/TaskStore.dcl
View file @
5d1d99c7
...
...
@@ -77,6 +77,7 @@ taskInstanceShares :: RWShared InstanceNo (Map TaskId DeferredJSON) (Map Ta
localShare
::
RWShared
TaskId
a
a
|
iTask
a
//Core parallel task list state structure
taskInstanceParallelTaskLists
::
RWShared
InstanceNo
(
Map
TaskId
[
ParallelTaskState
])
(
Map
TaskId
[
ParallelTaskState
])
taskInstanceParallelTaskList
::
RWShared
(
TaskId
,
TaskListFilter
)
[
ParallelTaskState
]
[
ParallelTaskState
]
//Private interface used during evaluation of parallel combinator
...
...
Libraries/iTasks/Internal/TaskStore.icl
View file @
5d1d99c7
...
...
@@ -426,8 +426,11 @@ taskInstanceEmbeddedTask :: RWShared TaskId (Task a) (Task a) | iTask a
taskInstanceEmbeddedTask
=
sdsLens
"taskInstanceEmbeddedTask"
param
(
SDSRead
read
)
(
SDSWrite
write
)
(
SDSNotifyConst
notify
)
taskInstanceReduct
where
param
(
TaskId
instanceNo
_)
=
instanceNo
read
taskId
{
TIReduct
|
tasks
}
=
case
fmap
unwrapTask
('
DM
'.
get
taskId
tasks
)
of
Just
task
=
Ok
task
//TODO: Investigate why unwrapTask (from clientoverride) no longer works here
read
taskId
{
TIReduct
|
tasks
}
=
case
('
DM
'.
get
taskId
tasks
)
of
(
Just
dyn
)
=
case
dyn
of
(
task
::
Task
a
^)
=
Ok
task
_
=
Error
(
exception
(
"Could not unwrap embedded task "
<+++
taskId
))
_
=
Error
(
exception
(
"Could not find embedded task "
<+++
taskId
))
write
taskId
r
=:{
TIReduct
|
tasks
}
w
=
Ok
(
Just
{
TIReduct
|
r
&
tasks
=
'
DM
'.
put
taskId
(
dynamic
w
::
Task
a
^)
tasks
})
notify
taskId
_
=
const
((==)
taskId
)
...
...
Libraries/iTasks/WF/Combinators/Core.icl
View file @
5d1d99c7
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment