Skip to content

Question: why v2.13 is running jobs much slover that. v2.10 #2953

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

Open
gudge25 opened this issue Apr 22, 2025 · 11 comments
Open

Question: why v2.13 is running jobs much slover that. v2.10 #2953

gudge25 opened this issue Apr 22, 2025 · 11 comments

Comments

@gudge25
Copy link

gudge25 commented Apr 22, 2025

Question

i noticed the same job on v2.13 is running much slower than on old v2.10
(Docker image)

Image

Image

Related to

No response

@fiftin
Copy link
Collaborator

fiftin commented Apr 22, 2025

Hm, I have no idea.

Is it really slowly or just incorrect Duration?

Can you compare by the task log times?

@gudge25
Copy link
Author

gudge25 commented Apr 22, 2025

No it is slow
I noticed it right after upgrade

I was thinking it is because of Ansible
So I tried:
semaphoreui/semaphore
and
semaphoreui/semaphore:v2.13.13-ansible2.16.5

But the situation is the same, so I'm wondering if it is because if additional features
which were introduced in latest semaphoreui

@vimagick
Copy link

I have the same issue for the same task:

DURATION: a few seconds -> a minute

@fiftin
Copy link
Collaborator

fiftin commented Apr 23, 2025

Hi @vimagick , @gudge25 I need more details about it, this issue require investigation.

I don’t see any slowdown in tasks from the Demo project:

Image

Can you share your task log?

@fiftin fiftin self-assigned this Apr 23, 2025
@gudge25
Copy link
Author

gudge25 commented Apr 23, 2025

hm, i made several tests
(not relying on first run cause it is installing some dependencies )
And I can't see an increased duration for now
(Maybe it was a VM problem - who khows)

@gudge25 gudge25 closed this as completed Apr 23, 2025
@gudge25
Copy link
Author

gudge25 commented Apr 23, 2025

ok so here is an example
(so it is not a PING related)

=OLD =
Duration 51 sec

9:13:24 AM
Task 2147483185 added to queue
9:13:27 AM
Started: 2147483185
9:13:27 AM
Run TaskRunner with template: Disable ARI and Signature check
9:13:27 AM
Preparing: 2147483185
9:13:27 AM
Cloning Repository https://gitea.pbx.com/satskiy.s/ansible.git
9:13:27 AM
Cloning into 'repository_1_6'...
9:13:29 AM
installing static inventory
9:13:29 AM
No /tmp/semaphore/repository_1_6/collections/requirements.yml file found. Skip galaxy install process.
9:13:29 AM
No /tmp/semaphore/repository_1_6/requirements.yml file found. Skip galaxy install process.
9:13:29 AM
No /tmp/semaphore/repository_1_6/roles/requirements.yml file found. Skip galaxy install process.
9:13:29 AM
No /tmp/semaphore/repository_1_6/requirements.yml file found. Skip galaxy install process.
9:13:33 AM
9:13:33 AM
PLAY [Disable ARI and some brand adjustments] **********************************
9:13:40 AM
9:13:40 AM
TASK [Disable ARI] *************************************************************
9:13:40 AM
ok: [pbx]
9:13:45 AM
9:13:45 AM
TASK [Disable SIGNATURECHECK] **************************************************
9:13:45 AM
ok: [pbx]
9:13:54 AM
9:13:54 AM
TASK [Copy logo file] **********************************************************
9:13:54 AM
ok: [pbx]
9:13:58 AM
9:13:58 AM
TASK [Logo link] ***************************************************************
9:13:58 AM
changed: [pbx]
9:14:03 AM
9:14:03 AM
TASK [Logo url link] ***********************************************************
9:14:03 AM
changed: [pbx]
9:14:09 AM
9:14:09 AM
TASK [Reload asterisk] *********************************************************
9:14:09 AM
changed: [pbx]
9:14:15 AM
9:14:15 AM
TASK [Replace Sangoma support link with mailto link] ***************************
9:14:15 AM
ok: [pbx]
9:14:15 AM
9:14:15 AM
PLAY RECAP *********************************************************************
9:14:15 AM
pbx             : ok=7    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
9:14:15 AM

=NEW=
2 min 18 SEC

9:16:26 AM
Task 2147483184 added to queue
9:16:28 AM
Started: 2147483184
9:16:28 AM
Run TaskRunner with template: Disable ARI and Signature check
9:16:28 AM
Preparing: 2147483184
9:16:28 AM
Cloning Repository https://gitea.pbx.com/satskiy.s/ansible.git
9:16:28 AM
Cloning into 'repository_1_6'...
9:16:29 AM
Get current commit hash
9:16:29 AM
Get current commit message
9:16:29 AM
installing static inventory
9:16:29 AM
No /tmp/semaphore/repository_1_6/collections/requirements.yml file found. Skip galaxy install process.
9:16:29 AM
No /tmp/semaphore/repository_1_6/requirements.yml file found. Skip galaxy install process.
9:16:29 AM
No /tmp/semaphore/repository_1_6/collections/requirements.yml file found. Skip galaxy install process.
9:16:29 AM
No /tmp/semaphore/repository_1_6/requirements.yml file found. Skip galaxy install process.
9:16:29 AM
No /tmp/semaphore/repository_1_6/roles/requirements.yml file found. Skip galaxy install process.
9:16:29 AM
No /tmp/semaphore/repository_1_6/requirements.yml file found. Skip galaxy install process.
9:16:29 AM
No /tmp/semaphore/repository_1_6/roles/requirements.yml file found. Skip galaxy install process.
9:16:29 AM
No /tmp/semaphore/repository_1_6/requirements.yml file found. Skip galaxy install process.
9:16:36 AM
9:16:36 AM
PLAY [Disable ARI and some brand adjustments] **********************************
9:16:53 AM
9:16:53 AM
TASK [Disable ARI] *************************************************************
9:16:53 AM
ok: [pbx]
9:17:09 AM
9:17:09 AM
TASK [Disable SIGNATURECHECK] **************************************************
9:17:09 AM
ok: [pbx]
9:17:36 AM
9:17:36 AM
TASK [Copy logo file] **********************************************************
9:17:36 AM
ok: [pbx]
9:17:53 AM
9:17:53 AM
TASK [Logo link] ***************************************************************
9:17:53 AM
changed: [pbx]
9:18:09 AM
9:18:09 AM
TASK [Logo url link] ***********************************************************
9:18:09 AM
changed: [pbx]
9:18:27 AM
9:18:27 AM
TASK [Reload asterisk] *********************************************************
9:18:27 AM
changed: [pbx]
9:18:44 AM
9:18:44 AM
TASK [Replace Sangoma support link with mailto link] ***************************
9:18:44 AM
ok: [pbx]
9:18:44 AM
9:18:44 AM
PLAY RECAP *********************************************************************
9:18:44 AM
pbx             : ok=7    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
9:18:44 AM 

@gudge25 gudge25 reopened this Apr 23, 2025
@gudge25
Copy link
Author

gudge25 commented Apr 23, 2025

⏱ Task Duration – New

Step Description Start Time End Time Duration
1 Task added to queue → Task started 9:16:26 AM 9:16:28 AM 2 sec
2 Cloning repository → static inventory 9:16:28 AM 9:16:29 AM 1 sec
3 Galaxy install skipped 9:16:29 AM 9:16:36 AM 7 sec
4 Start play: Disable ARI 9:16:36 AM 9:16:53 AM 17 sec
5 Task: Disable ARI 9:16:53 AM 9:17:09 AM 16 sec
6 Task: Disable SIGNATURECHECK 9:17:09 AM 9:17:36 AM 27 sec
7 Task: Copy logo file 9:17:36 AM 9:17:53 AM 17 sec
8 Task: Logo link 9:17:53 AM 9:18:09 AM 16 sec
9 Task: Logo URL link 9:18:09 AM 9:18:27 AM 18 sec
10 Task: Reload Asterisk 9:18:27 AM 9:18:44 AM 17 sec
11 Task: Replace support link 9:18:44 AM 9:18:44 AM 0 sec

⏱ Task Duration – OLD

Step Description Start Time End Time Duration
1 Task added to queue → Task started 9:13:24 AM 9:13:27 AM 3 sec
2 Cloning repository → inventory setup 9:13:27 AM 9:13:29 AM 2 sec
3 Galaxy install skipped 9:13:29 AM 9:13:33 AM 4 sec
4 Start play: Disable ARI and branding 9:13:33 AM 9:13:40 AM 7 sec
5 Task: Disable ARI 9:13:40 AM 9:13:45 AM 5 sec
6 Task: Disable SIGNATURECHECK 9:13:45 AM 9:13:54 AM 9 sec
7 Task: Copy logo file 9:13:54 AM 9:13:58 AM 4 sec
8 Task: Logo link 9:13:58 AM 9:14:03 AM 5 sec
9 Task: Logo URL link 9:14:03 AM 9:14:09 AM 6 sec
10 Task: Reload Asterisk 9:14:09 AM 9:14:15 AM 6 sec
11 Task: Replace Sangoma support link with mailto link 9:14:15 AM 9:14:15 AM 0 sec

@gudge25
Copy link
Author

gudge25 commented Apr 23, 2025

so i can see 2x-3x duration increase on "command" and "copy" execution for NEW semaphore/ansible

@fiftin fiftin added this to the 2.14 milestone Apr 23, 2025
@gudge25
Copy link
Author

gudge25 commented Apr 23, 2025

Can it be related to that im using
command and not ansible.builtin.command
and. copy not ansible.builtin.copy

@fiftin
Copy link
Collaborator

fiftin commented Apr 24, 2025

@gudge25 can you share you playbook? Maybe subset which demonstrate the issue

@gudge25
Copy link
Author

gudge25 commented Apr 24, 2025

---
- name: Disable ARI and some brand adjustments
  hosts: "{{ target_hosts | default('all') }}"
  gather_facts: false
  strategy: free
  vars:
   src_logo_file: ./files/1234.png
   dst_logo_file: /var/www/html/admin/images/gixo-logo.png
  tasks:
    - name: Disable ARI
      command: fwconsole setting ENABLE_ARI 0
      changed_when: false
    - name: Disable SIGNATURECHECK
      command: fwconsole setting SIGNATURECHECK 0
      changed_when: false
    - name: Copy logo file
      copy: src={{ src_logo_file }} dest={{ dst_logo_file }}
    - name: Logo link
      command: fwconsole setting BRAND_IMAGE_SPONSOR_FOOT images/gixo-logo.png
    - name: Logo url link
      command: fwconsole setting BRAND_IMAGE_SPONSOR_LINK_FOOT https://gixo.co.uk
    - name: Reload asterisk
      command: fwconsole reload

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

No branches or pull requests

3 participants