-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): Add config job for imagery processing api (#2162)
* Add config job for imagery processing api * Update the configJob to cogCreation config. * Change the config name as ProcessingJob.
- Loading branch information
1 parent
24ed0c0
commit 4ad2d37
Showing
6 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ export enum ConfigPrefix { | |
Provider = 'pv', | ||
ImageryRule = 'ir', | ||
Style = 'st', | ||
ProcessingJob = 'pj', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { BaseConfig } from './base.js'; | ||
|
||
export enum JobStatus { | ||
Processing = 'processing', | ||
Complete = 'complete', | ||
} | ||
|
||
export type ConfigProcessingJob = ProcessingJob | ProcessingJobFailed; | ||
|
||
export interface ProcessingJob extends BaseConfig { | ||
/** Job Status for the imagery importing batch jobs */ | ||
status: JobStatus; | ||
} | ||
|
||
export interface ProcessingJobFailed extends BaseConfig { | ||
status: 'failed'; | ||
/** Job Batch processing error messages */ | ||
error: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters