Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Convert period dates to datetime
Browse files Browse the repository at this point in the history
‘entrypoint’ is invoked through REDIS and receives the dates as strings
  • Loading branch information
leelongmore committed Nov 14, 2017
1 parent 5f41500 commit 6261d04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backdrop/transformers/dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from statsd import StatsClient

from backdrop.core.timeseries import parse_period
from backdrop.core.timeutils import parse_time_as_utc
from backdrop.core.log_handler import get_log_file_handler
from backdrop.core.errors import incr_on_error
from backdrop.transformers.tasks.util import encode_id
Expand All @@ -33,6 +34,9 @@ def entrypoint(dataset_id, earliest, latest):
to run, and dispatch tasks to the appropriate workers.
"""

earliest = parse_time_as_utc(earliest)
latest = parse_time_as_utc(latest)

admin_api = AdminAPI(
config.STAGECRAFT_URL,
config.STAGECRAFT_OAUTH_TOKEN,
Expand Down

0 comments on commit 6261d04

Please sign in to comment.