Skip to content

Commit c5854b4

Browse files
committed
feat: add force_notify arg to task service
1 parent d0a421b commit c5854b4

File tree

1 file changed

+22
-3
lines changed
  • apps/codecov-api/services/task

1 file changed

+22
-3
lines changed

apps/codecov-api/services/task/task.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,39 @@ def upload_breadcrumb(
166166
},
167167
).apply_async()
168168

169-
def notify_signature(self, repoid, commitid, current_yaml=None, empty_upload=None):
169+
def notify_signature(
170+
self,
171+
repoid,
172+
commitid,
173+
current_yaml=None,
174+
empty_upload=None,
175+
force_notify=False,
176+
):
170177
return self._create_signature(
171178
celery_config.notify_task_name,
172179
kwargs={
173180
"repoid": repoid,
174181
"commitid": commitid,
175182
"current_yaml": current_yaml,
176183
"empty_upload": empty_upload,
184+
"force_notify": force_notify,
177185
},
178186
)
179187

180-
def notify(self, repoid, commitid, current_yaml=None, empty_upload=None):
188+
def notify(
189+
self,
190+
repoid,
191+
commitid,
192+
current_yaml=None,
193+
empty_upload=None,
194+
force_notify=False,
195+
):
181196
self.notify_signature(
182-
repoid, commitid, current_yaml=current_yaml, empty_upload=empty_upload
197+
repoid,
198+
commitid,
199+
current_yaml=current_yaml,
200+
empty_upload=empty_upload,
201+
force_notify=force_notify,
183202
).apply_async()
184203

185204
def pulls_sync(self, repoid, pullid):

0 commit comments

Comments
 (0)