[Workbench] Pipeline Template error: no implicit conversion of ActiveSupport::TimeWithZone into String
I clicked on re-run with latest on instance: qr1hi-d1hrv-idj2c7bhyqmhjcs. The pipeline queued for a few seconds and then the error message came up:
The components of this pipeline are in a format that Workbench does not recognize.
Error encountered: #<ActionView::Template::Error: no implicit conversion of ActiveSupport::TimeWithZone into String>
It looks like the job is running though in the active pipelines tab on dashboard. I just can't look at the instance at all because the message comes up.
#6 Updated by Radhika Chippada over 5 years ago
- This issue is happening for pipelines in Running state. It is due to a recent update to handle start_at timestamp in apps/workbench/app/views/pipeline_instances/_running_component.html.erb
apps/workbench/app/views/pipeline_instances/_running_component.html.erb <% if current_job[:state] == "Queued" %> <%# column offset 5 %> <div class="col-md-6"> - <% queuetime = Time.now - Time.iso8601(current_job[:created_at]) %> + <% queuetime = Time.now - current_job[:created_at] %> Queued for <%= render_runtime(queuetime, true) %>. <% begin %>
- Reverted that particular update as shown above
- Added an explicit test to verify the time display for a pipeline in Running state
- All pipeline instances test passed. Manual verification passed.