Skip to content

Scripts are not awaited by default #487

Closed

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 🐞

Activity

  1. added
    type: bug
    on Jan 23, 2025
  2. added 3 commits that reference this issue on Jan 23, 2025
    2ddd4f4
    ed45671
    b780dc1
  3. added
    priority: high
    weight: 1
    app: runner
    on Jan 23, 2025
  4. added this to the v1.0.0 milestone on Jan 23, 2025
  5. cdavernas commented on Jan 23, 2025

    @cdavernas
    Member

    @toxik Thanks for reporting!!!

    P.S.: Don't hesitate to star the project in sign of support to the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app: runnerpriority: hightype: bugweight: 1

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions