[
https://issues.apache.org/jira/browse/BEAM-13479?focusedWorklogId=698782&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-698782
]
ASF GitHub Bot logged work on BEAM-13479:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 20/Dec/21 15:44
Start Date: 20/Dec/21 15:44
Worklog Time Spent: 10m
Work Description: pavel-avilov commented on a change in pull request
#16278:
URL: https://github.com/apache/beam/pull/16278#discussion_r772470227
##########
File path: playground/backend/internal/code_processing/code_processing_test.go
##########
@@ -249,7 +250,9 @@ func Test_Process(t *testing.T) {
if tt.createExecFile {
_, _ = lc.CreateSourceCodeFile(tt.code)
}
-
+ if err = utils.SetToCache(tt.args.ctx, cacheService,
tt.args.pipelineId, cache.Canceled, false); err != nil {
+ t.Fatal("error during set cancel flag to cache
as a false")
Review comment:
Done.
##########
File path: playground/backend/cmd/server/controller.go
##########
@@ -193,7 +197,7 @@ func (controller *playgroundController) Cancel(ctx
context.Context, info *pb.Can
return nil, errors.InvalidArgumentError("Cancel", "pipelineId
has incorrect value and couldn't be parsed as uuid value: %s",
info.PipelineUuid)
}
if err := utils.SetToCache(ctx, controller.cacheService, pipelineId,
cache.Canceled, true); err != nil {
- return nil, errors.InternalError("Cancel", "error during set
cancel flag to cache")
+ return nil, errors.InternalError("Cancel", "Error during set
cancel flag to cache as a true")
Review comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 698782)
Time Spent: 2h 10m (was: 2h)
> [Playground] Change logic with Cancel method.
> ---------------------------------------------
>
> Key: BEAM-13479
> URL: https://issues.apache.org/jira/browse/BEAM-13479
> Project: Beam
> Issue Type: Improvement
> Components: beam-playground
> Reporter: Aydar Zaynutdinov
> Assignee: Pavel Avilov
> Priority: P3
> Labels: beam-playground-backend, beam-playground-beta-launch
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> Now server call method as a goroutine to check cancel flag.
> When the Cancel() method is called the cancel flag is set to the cache as a
> true.
> Need:
> * Set false flag as a default value before calling the Process method.
> * Change the logic of the cancelCheck() method. Now it checks that the flag
> cancel exists and after that returns from the method and stops goroutine.
> Need to change this logic and return from the method in case the cancel flag
> is true.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)