Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
ClientConverterCallback - setting final job conversion state
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotoNomad0 committed Oct 11, 2017
1 parent d06e0e4 commit 3407b32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/client/client_converter_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import tempfile
from datetime import datetime
from libraries.app.app import App
from libraries.client.client_linter_callback import ClientLinterCallback
from libraries.general_tools.file_utils import unzip, write_file, remove_tree, remove
Expand Down Expand Up @@ -55,6 +56,7 @@ def process_callback(self):
part_id = None
multiple_project = False

self.job.ended_at = datetime.utcnow()
self.job.success = self.success
for message in self.log:
self.job.log_message(message)
Expand Down Expand Up @@ -83,6 +85,10 @@ def process_callback(self):
self.job.status = "success"
message = "Conversion successful"

self.job.message = message
self.job.log_message(message)
self.job.log_message('Finished job {0} at {1}'.format(self.job.job_id, self.job.ended_at.strftime("%Y-%m-%dT%H:%M:%SZ")))

s3_commit_key = 'u/{0}/{1}/{2}'.format(self.job.user_name, self.job.repo_name, self.job.commit_id)
upload_key = s3_commit_key
if multiple_project:
Expand Down

0 comments on commit 3407b32

Please sign in to comment.