|
|
|
@ -13,95 +13,135 @@
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</form>
|
|
|
|
|
<table class="gf-table w-100">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr class="mat-header-row">
|
|
|
|
|
<th class="mat-header-cell px-1 py-2 text-right">#</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2" i18n>Type</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2" i18n>Symbol</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2" i18n>Data Source</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2 text-right" i18n>Attempts</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2" i18n>Created</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2" i18n>Finished</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2" i18n>Status</th>
|
|
|
|
|
<th class="mat-header-cell px-1 py-2">
|
|
|
|
|
<button
|
|
|
|
|
class="mx-1 no-min-width px-2"
|
|
|
|
|
mat-button
|
|
|
|
|
[matMenuTriggerFor]="jobsActionsMenu"
|
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
|
>
|
|
|
|
|
<ion-icon name="ellipsis-vertical"></ion-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<mat-menu #jobsActionsMenu="matMenu" xPosition="before">
|
|
|
|
|
<button mat-menu-item (click)="onDeleteJobs()">
|
|
|
|
|
<ng-container i18n>Delete Jobs</ng-container>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
<table class="gf-table w-100" mat-table [dataSource]="dataSource">
|
|
|
|
|
<ng-container matColumnDef="index">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2 text-right" mat-header-cell>
|
|
|
|
|
#
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2 text-right" mat-cell>
|
|
|
|
|
{{ element.id }}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="type">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
|
|
|
|
|
<ng-container i18n>Type</ng-container>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<ng-container *ngFor="let job of jobs">
|
|
|
|
|
<tr class="mat-row">
|
|
|
|
|
<td class="mat-cell px-1 py-2 text-right">{{ job.id }}</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2">
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
|
|
|
|
|
<span class="align-items-center d-flex">
|
|
|
|
|
<ion-icon
|
|
|
|
|
class="mr-1"
|
|
|
|
|
name="arrow-down-circle-outline"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
<ng-container *ngIf="job.name === 'GATHER_ASSET_PROFILE'">
|
|
|
|
|
<ng-container *ngIf="element.name === 'GATHER_ASSET_PROFILE'">
|
|
|
|
|
<span i18n>Asset Profile</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container
|
|
|
|
|
*ngIf="job.name === 'GATHER_HISTORICAL_MARKET_DATA'"
|
|
|
|
|
*ngIf="element.name === 'GATHER_HISTORICAL_MARKET_DATA'"
|
|
|
|
|
>
|
|
|
|
|
<span i18n>Historical Market Data</span>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2">{{ job.data?.symbol }}</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2">{{ job.data?.dataSource }}</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2 text-right">
|
|
|
|
|
{{ job.attemptsMade }}
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="symbol">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
|
|
|
|
|
<ng-container i18n>Symbol</ng-container>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
|
|
|
|
|
{{ element.data?.symbol }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2">
|
|
|
|
|
{{ job.timestamp | date: defaultDateTimeFormat }}
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="dataSource">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
|
|
|
|
|
<ng-container i18n>Data Source</ng-container>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
|
|
|
|
|
{{ element.data?.dataSource }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2">
|
|
|
|
|
{{ job.finishedOn | date: defaultDateTimeFormat }}
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="attempts">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2 text-right" mat-header-cell>
|
|
|
|
|
<ng-container i18n>Attempts</ng-container>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2 text-right" mat-cell>
|
|
|
|
|
{{ element.attemptsMade }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2">
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="created">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
|
|
|
|
|
<ng-container i18n>Created</ng-container>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
|
|
|
|
|
{{ element.timestamp | date: defaultDateTimeFormat }}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="finished">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
|
|
|
|
|
<ng-container i18n>Finished</ng-container>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
|
|
|
|
|
{{ element.finishedOn | date: defaultDateTimeFormat }}
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="status">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
|
|
|
|
|
<ng-container i18n>Status</ng-container>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
|
|
|
|
|
<ion-icon
|
|
|
|
|
*ngIf="job.state === 'active'"
|
|
|
|
|
*ngIf="element.state === 'active'"
|
|
|
|
|
name="play-outline"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
<ion-icon
|
|
|
|
|
*ngIf="job.state === 'completed'"
|
|
|
|
|
*ngIf="element.state === 'completed'"
|
|
|
|
|
class="text-success"
|
|
|
|
|
name="checkmark-circle-outline"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
<ion-icon
|
|
|
|
|
*ngIf="job.state === 'delayed'"
|
|
|
|
|
*ngIf="element.state === 'delayed'"
|
|
|
|
|
name="time-outline"
|
|
|
|
|
[ngClass]="{ 'text-danger': job.stacktrace?.length > 0 }"
|
|
|
|
|
[ngClass]="{ 'text-danger': element.stacktrace?.length > 0 }"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
<ion-icon
|
|
|
|
|
*ngIf="job.state === 'failed'"
|
|
|
|
|
*ngIf="element.state === 'failed'"
|
|
|
|
|
class="text-danger"
|
|
|
|
|
name="alert-circle-outline"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
<ion-icon
|
|
|
|
|
*ngIf="job.state === 'paused'"
|
|
|
|
|
*ngIf="element.state === 'paused'"
|
|
|
|
|
name="pause-outline"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
<ion-icon
|
|
|
|
|
*ngIf="job.state === 'waiting'"
|
|
|
|
|
*ngIf="element.state === 'waiting'"
|
|
|
|
|
name="cafe-outline"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="mat-cell px-1 py-2">
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container matColumnDef="actions">
|
|
|
|
|
<th *matHeaderCellDef class="px-1 py-2" mat-header-cell>
|
|
|
|
|
<button
|
|
|
|
|
class="mx-1 no-min-width px-2"
|
|
|
|
|
mat-button
|
|
|
|
|
[matMenuTriggerFor]="jobsActionsMenu"
|
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
|
>
|
|
|
|
|
<ion-icon name="ellipsis-vertical"></ion-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<mat-menu #jobsActionsMenu="matMenu" xPosition="before">
|
|
|
|
|
<button mat-menu-item (click)="onDeleteJobs()">
|
|
|
|
|
<ng-container i18n>Delete Jobs</ng-container>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
</th>
|
|
|
|
|
<td *matCellDef="let element" class="px-1 py-2" mat-cell>
|
|
|
|
|
<button
|
|
|
|
|
class="mx-1 no-min-width px-2"
|
|
|
|
|
mat-button
|
|
|
|
@ -111,24 +151,25 @@
|
|
|
|
|
<ion-icon name="ellipsis-horizontal"></ion-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<mat-menu #jobActionsMenu="matMenu" xPosition="before">
|
|
|
|
|
<button mat-menu-item (click)="onViewData(job.data)">
|
|
|
|
|
<button mat-menu-item (click)="onViewData(element.data)">
|
|
|
|
|
<ng-container i18n>View Data</ng-container>
|
|
|
|
|
</button>
|
|
|
|
|
<button
|
|
|
|
|
mat-menu-item
|
|
|
|
|
[disabled]="job.stacktrace?.length <= 0"
|
|
|
|
|
(click)="onViewStacktrace(job.stacktrace)"
|
|
|
|
|
[disabled]="element.stacktrace?.length <= 0"
|
|
|
|
|
(click)="onViewStacktrace(element.stacktrace)"
|
|
|
|
|
>
|
|
|
|
|
<ng-container i18n>View Stacktrace</ng-container>
|
|
|
|
|
</button>
|
|
|
|
|
<button mat-menu-item (click)="onDeleteJob(job.id)">
|
|
|
|
|
<button mat-menu-item (click)="onDeleteJob(element.id)">
|
|
|
|
|
<ng-container i18n>Delete Job</ng-container>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-menu>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
|
|
<tr *matHeaderRowDef="displayedColumns" mat-header-row></tr>
|
|
|
|
|
<tr *matRowDef="let row; columns: displayedColumns" mat-row></tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|