Skip to content

Commit

Permalink
Merge pull request #37 from mumez/develop
Browse files Browse the repository at this point in the history
Develop: TrRequest>>asTaskFor: will raise an exception on failure
  • Loading branch information
mumez authored Jan 4, 2020
2 parents 33ec447 + f6aed4f commit c973ef4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/TaskIt-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ future := (talk asyncExecuteSql: 'select * from programming_languages') future.
future
onSuccessDo: [:ret | Transcript cr; show: ret ];
onSuccessDo: [:ret | ret metadata inspect ];
onFailureDo: [:error | error inspect];
onFailureDo: [:error | error pass].
onFailureDo: [:error | error signal];
onFailureDo: [:error | error inspect].
```

## Combining future sends
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
*Tarantalk-TaskIt
asTaskFor: waitTimeoutSeconds
^ TKTTask valuable: [ | proxy val |
^ TKTTask valuable: [ | proxy |
proxy := self proxyFor: waitTimeoutSeconds.
(val := proxy value) isError ifTrue: [ val signal ].
proxy value.
proxy isError ifTrue: [ proxy signal ].
proxy
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"future:for:" : "MasashiUmezawa 12/30/2019 22:53",
"schedule:for:" : "MasashiUmezawa 12/30/2019 22:54",
"taskRunner" : "MasashiUmezawa 12/15/2019 14:46",
"asTaskFor:" : "MasashiUmezawa 1/4/2020 21:44",
"asTaskFor:" : "MasashiUmezawa 1/4/2020 22:05",
"schedule" : "MasashiUmezawa 12/15/2019 21:54",
"schedule:" : "MasashiUmezawa 12/30/2019 22:54",
"taskRunnerFactoryClass" : "MasashiUmezawa 12/15/2019 14:47",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(name 'Tarantalk-TaskIt-MasashiUmezawa.10' message 'TrRequest>>asTaskFor: will raise an exception on failure' id '08c0aa8a-b157-0d00-8e79-d0dc09b86837' date '4 January 2020' time '9:45:44.512643 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.9' message 'Added asTaskFor: for setting waitTimeout explicitly' id '951dac1e-4e57-0d00-b9b0-937401a377fc' date '30 December 2019' time '11:08:50.900517 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.8' message 'Changed asTask to senf #value before returning proxy' id '723e0046-ad56-0d00-9372-85ec0804dfda' date '22 December 2019' time '11:15:00.990745 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.7' message 'Added TrSpace>>futureAt: series' id 'a130fd82-6c56-0d00-91f5-ddea0fdc8cc3' date '19 December 2019' time '5:59:11.32652 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.6' message 'Fixed TrRequest>>asTask to use proxy' id 'fb549a46-4956-0d00-84fd-2bc7085f201d' date '17 December 2019' time '11:56:54.35951 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.5' message 'Added TrRequest>>future: and schedule:' id 'edc5865b-1f56-0d00-8ce2-af3d075f0498' date '15 December 2019' time '9:56:16.772725 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.4' message 'Updated TrSettings>>taskRunnerType comment' id '90a15a29-1f56-0d00-8ce1-6365075f0498' date '15 December 2019' time '9:42:15.019012 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.3' message 'Adding TrTaskRunnerFactory' id 'ca5f32f0-1956-0d00-bf14-89260d4293df' date '15 December 2019' time '3:28:21.242974 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.2' message 'Experimentally added TrFutureValue' id 'db3ffc54-0d56-0d00-84f2-890803642893' date '15 December 2019' time '12:25:57.619821 am' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.1' message 'Experimentally added TrFutureValue' id '768f394d-0d56-0d00-84f1-a8ab03642893' date '15 December 2019' time '12:23:47.420164 am' author 'MasashiUmezawa' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())
(name 'Tarantalk-TaskIt-MasashiUmezawa.11' message 'TrRequest>>asTaskFor: will raise an exception on failure' id '08d77dd4-b157-0d00-9f9b-de0505656bb8' date '4 January 2020' time '10:06:23.083484 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.10' message 'TrRequest>>asTaskFor: will raise an exception on failure' id '08c0aa8a-b157-0d00-8e79-d0dc09b86837' date '4 January 2020' time '9:45:44.512643 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.9' message 'Added asTaskFor: for setting waitTimeout explicitly' id '951dac1e-4e57-0d00-b9b0-937401a377fc' date '30 December 2019' time '11:08:50.900517 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.8' message 'Changed asTask to senf #value before returning proxy' id '723e0046-ad56-0d00-9372-85ec0804dfda' date '22 December 2019' time '11:15:00.990745 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.7' message 'Added TrSpace>>futureAt: series' id 'a130fd82-6c56-0d00-91f5-ddea0fdc8cc3' date '19 December 2019' time '5:59:11.32652 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.6' message 'Fixed TrRequest>>asTask to use proxy' id 'fb549a46-4956-0d00-84fd-2bc7085f201d' date '17 December 2019' time '11:56:54.35951 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.5' message 'Added TrRequest>>future: and schedule:' id 'edc5865b-1f56-0d00-8ce2-af3d075f0498' date '15 December 2019' time '9:56:16.772725 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.4' message 'Updated TrSettings>>taskRunnerType comment' id '90a15a29-1f56-0d00-8ce1-6365075f0498' date '15 December 2019' time '9:42:15.019012 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.3' message 'Adding TrTaskRunnerFactory' id 'ca5f32f0-1956-0d00-bf14-89260d4293df' date '15 December 2019' time '3:28:21.242974 pm' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.2' message 'Experimentally added TrFutureValue' id 'db3ffc54-0d56-0d00-84f2-890803642893' date '15 December 2019' time '12:25:57.619821 am' author 'MasashiUmezawa' ancestors ((name 'Tarantalk-TaskIt-MasashiUmezawa.1' message 'Experimentally added TrFutureValue' id '768f394d-0d56-0d00-84f1-a8ab03642893' date '15 December 2019' time '12:23:47.420164 am' author 'MasashiUmezawa' ancestors () stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())) stepChildren ())

0 comments on commit c973ef4

Please # to comment.