repo_sync_on_run_timeout doesn't work
BUG
Replace all comments to answers. Before adding a new issue check the tracker for similar issues.
What's the core of the bug?
TypeError...
Exception output
[24/Nov/2021 11:36:30] ERROR [polemarch.run:419] Traceback (most recent call last): File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/projects.py", line 312, in sync_on_execution_handler for i in range(timeout): # pylint: disable=unused-variable TypeError: 'str' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/utils.py", line 417, in run return self.execute(*self.args, **self.kwargs) File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/utils.py", line 394, in execute self.prepare(target, inventory, history, project) File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/utils.py", line 315, in prepare self.project.sync_on_execution_handler() File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/projects.py", line 320, in sync_on_execution_handler raise self.SyncError("ERROR on Sync operation: " + str(exc)) polemarch.main.models.projects.Project.SyncError: ERROR on Sync operation: 'str' object cannot be interpreted as an integer
Traceback (most recent call last): File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/projects.py", line 312, in sync_on_execution_handler for i in range(timeout): # pylint: disable=unused-variable TypeError: 'str' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/utils.py", line 417, in run return self.execute(*self.args, **self.kwargs) File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/utils.py", line 394, in execute self.prepare(target, inventory, history, project) File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/utils.py", line 315, in prepare self.project.sync_on_execution_handler() File "/opt/polemarch/lib64/python3.6/site-packages/polemarch/main/models/projects.py", line 320, in sync_on_execution_handler raise self.SyncError("ERROR on Sync operation: " + str(exc)) polemarch.main.models.projects.Project.SyncError: ERROR on Sync operation: 'str' object cannot be interpreted as an integer
How to reproduce?
Create a blank project with git repo type Add variables to project on Variables tab repo_sync_on_run to true repo_sync_on_run_timeout with any value Run some from this project In the History would be an error: ERROR on Sync operation: 'str' object cannot be interpreted as an integer
How bug we could reproduce? (if it BUG of course)
Current Polemarch version
Django=2.2.16 Polemarch=1.8.5 Vstutils=4.0.15 Ansible=2.9.14 Celery=4.4.0
Database type
PostgreSQ:
RPC type
Default
Additional info
Other info that could help.
This could be your settings.ini or output of pip freeze
.