Skip to content

Allow defer to know if the task succeded or failed #1484

@andreynering

Description

@andreynering

Originally asked in #1472 by @your-diary.

A possible way to allow this is to expose one/some variables to defer. One possibility is to expose a DEFER_EXIT_CODE var which would contain 0 for success or the exit code of the task that failed.

Perhaps we could also have DEFER_SUCCESS (true/false) and DEFER_FAIL (true/false) to make a simpler check easier? (Not sure, DEFER_EXIT_CODE is probably enough).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions