Skip to content

Scripts are not awaited by default #487

Closed
@toxik

Description

@toxik

I tried this:

The script tasks don't wait until completion

document:
  dsl: 1.0.0-alpha5
  namespace: default
  name: scripts
  version: 0.1.32
do:
- log:
    run:
      script:
        language: js
        code: >
          console.log('hello world'); setTimeout(() => console.log('it waited for a bit!'))
      await: true

This happened:

The script task is fire and forget.

I expected this:

No response

Is there a workaround?

changing to await: false seem to wait for the script to complete

Anything else?

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞

Metadata

Metadata

Assignees

No one assigned

    Labels

    app: runnerConcerns the Runnerpriority: highIndicates a high priority issuetype: bugSomething isn't workingweight: 1An issue that has a very low development impact

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions