Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-13033

[Playground] Go context for executor

Details

    Description

      Go context usage

      As a maintainer,

      I want to be able to control all goroutines using the Go context.

      Acceptance criteria:

      1. Context with Deadline is provided for the executor processes

      Scenario: Pipeline was stuck
      Given: User sent RunCode request
      When: Server compiled code
      And: Server ran compiled code
      And: Code didn't complete in deadline time
      Then: All executor processes is cancel
      And: All resources cleaned up
      And: Pipeline status changed to failed
      And: Correspondent error retrieved to the client (through cache)

      2. Context with cancelation is provided for the executor processes

      Scenario: User closed Playground
      Given: User sent RunCode request
      When: Server compiled code
      And: Server ran compiled code
      And: Client closed Playground page
      Then: All executor processes is cancel
      And: All resources cleaned up
      And: Pipeline status changed to failed
      And: Correspondent error put to cache.

       

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            Aydar Zaynutdinov Aydar Zaynutdinov
            IKozyrev Ilya Kozyrev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h
                4h