File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,6 @@ def trigger_sync_versions(project):
102
102
log .info ("Skipping sync versions for project." , project_slug = project .slug )
103
103
return None
104
104
105
- options = {}
106
- if project .build_queue :
107
- # respect the queue for this project
108
- options ["queue" ] = project .build_queue
109
-
110
105
_ , build_api_key = BuildAPIKey .objects .create_key (project = project )
111
106
112
107
log .debug (
@@ -117,7 +112,6 @@ def trigger_sync_versions(project):
117
112
sync_repository_task .apply_async (
118
113
args = [version .pk ],
119
114
kwargs = {"build_api_key" : build_api_key },
120
- ** options ,
121
115
)
122
116
return version .slug
123
117
except Exception :
Original file line number Diff line number Diff line change @@ -1806,6 +1806,9 @@ def test_webhook_skipped_project(self, trigger_build):
1806
1806
def test_sync_repository_custom_project_queue (
1807
1807
self , sync_repository_task , trigger_build
1808
1808
):
1809
+ """
1810
+ Check that the custom queue isn't used for sync_repository_task.
1811
+ """
1809
1812
client = APIClient ()
1810
1813
self .project .build_queue = "specific-build-queue"
1811
1814
self .project .save ()
@@ -1836,7 +1839,7 @@ def test_sync_repository_custom_project_queue(
1836
1839
kwargs = {
1837
1840
"build_api_key" : mock .ANY ,
1838
1841
},
1839
- queue = "specific-build-queue" ,
1842
+ # No queue
1840
1843
)
1841
1844
1842
1845
def test_github_webhook_for_branches (self , trigger_build ):
You can’t perform that action at this time.
0 commit comments