[ckan-changes] [ckan/ckan] 2e6afc: [#2856] Create DataPusher task timestamps using UT...

GitHub noreply at github.com
Wed May 25 10:36:19 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 2e6afc34f7b4e2b946188390c749de5ed97bd2fe
      https://github.com/ckan/ckan/commit/2e6afc34f7b4e2b946188390c749de5ed97bd2fe
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-25 (Wed, 25 May 2016)

  Changed paths:
    M ckanext/datapusher/logic/action.py
    M ckanext/datapusher/tests/test_action.py

  Log Message:
  -----------
  [#2856] Create DataPusher task timestamps using UTC

When an upload to the DataPusher finishes we check
`resource['last_modified']` (in UTC) against `task['last_updated']`
to check whether it changed during the previous upload and resubmit it.
As `task['last_updated']` was created using `datetime.now()` this could
lead to infinite upload loops.

Discussion is here:

https://github.com/ckan/ckan/issues/2856#issuecomment-220383735


  Commit: 46be8f619a22ed41063c5a1ca7cc0ccca7cca544
      https://github.com/ckan/ckan/commit/46be8f619a22ed41063c5a1ca7cc0ccca7cca544
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2016-05-25 (Wed, 25 May 2016)

  Changed paths:
    M ckanext/datapusher/logic/action.py
    M ckanext/datapusher/tests/test_action.py

  Log Message:
  -----------
  Merge pull request #3051 from ckan/2856-datapusher-tasks-utc

[#2856] Create DataPusher task timestamps using UTC


Compare: https://github.com/ckan/ckan/compare/56ae1bd8f5e2...46be8f619a22


More information about the ckan-changes mailing list