This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Add an API to view current scheduled jobs #80
Closed
ftianli-amzn
wants to merge
63
commits into
opendistro-for-elasticsearch:master
from
tlfeng:listjob_api
Closed
Add an API to view current scheduled jobs #80
ftianli-amzn
wants to merge
63
commits into
opendistro-for-elasticsearch:master
from
tlfeng:listjob_api
Conversation
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
Update code of conduct link
* Support ES7.0, use primary_term and seq_no for job doc versioning
* support scheduledJob with locks. * Use ClusterService instead of Client to check the index exists. address some minor comment. * Updated through the comment. 1. Move the LockService in the SPI package 1. Added deleteLock to test. 1. Updated naming from job_type to job_index_name 1. updated delete lock to be safe with non existing index name. * Use ClusterStateService for lockIndexExist * Update acquireLock to take JobParam and JobContext * add some documentation to LockService
* Update release-note for OpenDistro 1.0.0 release * Add Debian package build * Update Rpm build
* Filter clusterChangedEvent when doing sweeping * Format code
* Update release lock log level * Update sweeper version compare log level
* update ScheduledJobParser to use the JobDocVersion
* support ES 7.1.1 and upgrade to Opendistro 1.1
* Add spi subproject maven publish task
* Support Elasticsearch 7.2
* Support ES version 7.4.2 * change LockServiceIT timing * give unique table name and job id for each test * upload artifacts if failed * include spi build upload artifacts
* Updates release notes * Changes runs-on to Mac for github workflow
* add jitter in job parameters * add jitter limit * set default jitter limit as 0.6; add more comments
* Create push-jdbc-jar.yml * Update and rename push-jdbc-jar.yml to push-job-sched-jar.yml * Update push-job-sched-jar.yml * Update push-job-sched-jar.yml * Update push-job-sched-jar.yml
JAVA_HOME path corrected
* Support ES version 7.7.0 * A hack to reorder the plugins installation in testCluster * Update the requirement of JDK 14 in README and workflow files * Update the Release Notes
… interface in Elasticsearch 7.9.0 (#67) * Support Elasticsearch 7.9.0 * Update the release note for 1.10.0.0 to satisfy the unified format
…e notes (#68) * Add a config file to organize all labeled PRs and place under headers in the release notes * Add a workflow to create draft release notes under ‘Releases’ tab in GitHub * Reformat old release notes to meet the unified standard
* Making Schedule interface Writeable and relevant changes for CronScheduler and IntervalScheduler classes. - This is needed for converting Anomaly Detection API's to integrate with RestActions. * Removing intervalInMillis from Transport * Adding Unit Tests for Cron and Interval Schedules
* Add a function to renew lock in LockService class and add integration test for it * return the renewed lock instead of a boolean value when calling 'renewLock()'
* Bump plugin version and update release notes
I'm thinking if it's better to copy all the functionality in the stats API of Alerting to here. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
#73
Description of changes:
(This is a draft, and some details are going to be written down.)
Create a new API to get the information for all the in-memory jobs in every job index:
The jobs information contains:
The implementation is Inspired by the
stats
API in ODFE Alerting plugin (https://github.com/opendistro-for-elasticsearch/alerting/blob/master/core/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/core/resthandler/RestScheduledJobStatsHandler.kt)The structure of the response is:
Samples:
When there is no scheduled job:
When there are multiple scheduled jobs:
Todo: unit tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.