2018-05-30 08:04:51 +00:00
|
|
|
import { lt, equal } from '@ember/object/computed';
|
2021-02-17 21:01:44 +00:00
|
|
|
import { attr } from '@ember-data/model';
|
2018-05-30 08:04:51 +00:00
|
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
2020-06-10 13:49:16 +00:00
|
|
|
import classic from 'ember-classic-decorator';
|
2018-05-30 08:04:51 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
export default class DrainStrategy extends Fragment {
|
|
|
|
@attr('number') deadline;
|
|
|
|
@attr('date') forceDeadline;
|
|
|
|
@attr('boolean') ignoreSystemJobs;
|
2018-05-30 08:04:51 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@lt('deadline', 0) isForced;
|
|
|
|
@equal('deadline', 0) hasNoDeadline;
|
|
|
|
}
|