amol- commented on a change in pull request #10650:
URL: https://github.com/apache/arrow/pull/10650#discussion_r672362045



##########
File path: dev/archery/archery/crossbow/cli.py
##########
@@ -233,6 +234,31 @@ def latest_prefix(obj, prefix, fetch):
     click.echo(latest.branch)
 
 
[email protected]()
[email protected]('job-name', required=True)
[email protected]('--fetch/--no-fetch', default=True,
+              help='Fetch references (branches and tags) from the remote')
[email protected]_obj
+def save_report_data(obj, job_name, fetch):
+    """
+    Just print there the state of the job
+    """
+    output = obj['output']
+
+    queue = obj['queue']
+    print(dir(queue))
+
+    if fetch:
+        queue.fetch()
+
+    job = queue.get(job_name)
+    report = JsonReport(job=job)
+    
+    with tempfile.NamedTemporaryFile(delete=False) as temp:
+        temp.write(report.show(output))

Review comment:
       I still don't get where `report.show` should come from. I don't see any 
`show` method implemented in `JsonReporter` and I guess you actually wanted to 
invoke `report.get_json_tasks()` here as that's what gives you back the json of 
the report as a string that you can write back to file..




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to