PR#2823: Add default task ID to prep_repo_init/done
Merges #2823 https://pagure.io/koji/pull-request/2823 Fixes: #888 https://pagure.io/koji/issue/888 RFE: record task id for repos
This commit is contained in:
commit
e44d9f6bd7
1 changed files with 2 additions and 0 deletions
|
|
@ -279,6 +279,7 @@ def prep_untag(cbtype, *args, **kws):
|
|||
@convert_datetime
|
||||
@callback('postRepoInit')
|
||||
def prep_repo_init(cbtype, *args, **kws):
|
||||
kws['task_id'] = kws.get('task_id')
|
||||
address = 'repo.init'
|
||||
props = {'type': cbtype[4:],
|
||||
'tag': kws['tag']['name'],
|
||||
|
|
@ -290,6 +291,7 @@ def prep_repo_init(cbtype, *args, **kws):
|
|||
@convert_datetime
|
||||
@callback('postRepoDone')
|
||||
def prep_repo_done(cbtype, *args, **kws):
|
||||
kws['task_id'] = kws.get('task_id')
|
||||
address = 'repo.done'
|
||||
props = {'type': cbtype[4:],
|
||||
'tag': kws['repo']['tag_name'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue