Skip to content

Syncing from upstream odoo/runbot (master)#22

Merged
bt-admin merged 1 commit intobrain-tec:masterfrom
odoo:master
Mar 16, 2019
Merged

Syncing from upstream odoo/runbot (master)#22
bt-admin merged 1 commit intobrain-tec:masterfrom
odoo:master

Conversation

@bt-admin
Copy link
Copy Markdown

bt_gitbot

When github reaches the hook controller, the repo hook_time field is
updated. That way, a git fetch is done only when the hook_time is newer
that the last fetch. If the hook_time is updated during the long running
cron that runs the _cron_fetch_and_schedule method, the hook_time is cached
and only the old hook time is seen until the cron's end. The cursor
commit is not enough. As a result, the new builds are scheduled in the
next cron run.

With this commit, the cache is invalidated after the commit, that way,
the hook_time field contains the correct value.
@bt-admin bt-admin merged commit a6bfb2d into brain-tec:master Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants