Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Task output not in the correct order #2195

Open
kikSaki opened this issue Jul 16, 2024 · 1 comment
Open

Problem: Task output not in the correct order #2195

kikSaki opened this issue Jul 16, 2024 · 1 comment

Comments

@kikSaki
Copy link

kikSaki commented Jul 16, 2024

Issue

After refreshing the page when the task finished running, the output seems to get printed in the wrong order.
image

Different lines get printed in the wrong tasks or after the end of the playbook. The problem seems to be that the lines are ordered by time and since the time is the same for all the lines they get mixed.

In the file /db/sql/task.go this query:
"select task_id, task, time, output from task__output where task_id=? order by time asc"

should be written as:
"select task_id, task, time, output from task__output where task_id=? order by id asc"

since the database saves the id of each line.

Impact

Web-Frontend (what users interact with)

Installation method

Package

Database

MySQL

Browser

Chrome, Microsoft Edge

Semaphore Version

2.10.11-d31ebd3-1719394739

Ansible Version

No response

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

@kikSaki
Copy link
Author

kikSaki commented Aug 12, 2024

Is there any timeline for this to be fixed, version 2.10.22 is still facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant