Skip to content

Outputs are unavailable after a timeout on a task #251

Closed

Description

@saliceti

After a task fails, ensure or on_failure are triggered. We are normally able to read the files generated in the failed task and do something useful with it.

But in the case of a timeout, these files are not available. This example shows this:

    - task: write_date
      config:
        run:
          path: sh
          args:
          - -c
          - |
            date | tee date.txt
            sleep 20
      timeout: 10s
      ensure:
        put: recorded_date
        params:
          from: write_date/date.txt

It errors with: error running command: no matches found for pattern: write_date/date.txt

When hijacking the put task:

/tmp/build/put # ls -l
total 0

Activity

  1. concourse-bot commented on Jan 7, 2016

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #111239810 Outputs should be registered even when a task is interrupted

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. concourse-bot commented on Jan 13, 2016

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    • #111239810 Outputs should be registered even when a task is interrupted

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  3. added a commit that references this issue on Mar 6, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions