Skip to content

Running long tasks on heroku as a detached dyno #36

@hammady

Description

@hammady

When running long tasks on heroku as detached one-off dyno as in:
heroku run:detached rake ns:task
The terminal is not connected to the task and all output is sent to heroku logs. This is useful if you are expecting a task to take hours or days and you can't sit and wait for it.
With progress_bar enabled tasks (like sunspot:reindex) monitoring the progress is impossible as the bar will only appear at the end (concatenated in the same line). I think this is because there is no new line character sent until at the very end.
Is there a way to allow this detached mode throw the current progress every minute or a configurable percentage?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions