yarn-app-attempt.js 512 B

123456789101112131415161718192021
  1. import Ember from 'ember';
  2. export default Ember.Route.extend({
  3. model(param) {
  4. return Ember.RSVP.hash({
  5. attempt: this.store.findRecord('yarnAppAttempt', param.app_attempt_id),
  6. rmContainers: this.store.query('yarnContainer',
  7. {
  8. app_attempt_id: param.app_attempt_id,
  9. is_rm: true
  10. }),
  11. tsContainers: this.store.query('yarnContainer',
  12. {
  13. app_attempt_id: param.app_attempt_id,
  14. is_rm: false
  15. }),
  16. });
  17. }
  18. });