Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
caaespin committed Jun 1, 2017
2 parents 79af3b2 + 786f4e8 commit 17ebe88
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion luigi-interface/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,29 @@ def get_consonance_status(consonance_uuid):
where(luigi.c.luigi_job == job_name)
exec_result = conn.execute(stmt)
else:
# DEBUG
# Consonace job id is real
#print "\nJOB NAME:", job_uuid
# print "\nJOB NAME:", job_uuid

status_json = get_consonance_status(job_uuid)

state = status_json['state']
created = status_json['create_timestamp']
updated = status_json['update_timestamp']

# Timestamp format: 2017-03-10T18:37:06.230+0000
# Date = str[:10] to get only YYYY-MM-DD
created_date = created[:10]
updated_date = updated[:10]

# Time = str[11:16] shaves the timestamp
# to just hours and minutes
created_time = created[11:16]
updated_time = updated[11:16]

created = created_date + " " + created_time
updated = updated_date + " " + updated_time

# DEBUG to check if state, created, and updated are collected
#print "STATE:", state
#print "CREATED:", created
Expand Down

0 comments on commit 17ebe88

Please sign in to comment.