Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Admin API - Start Scheduler: Return Job Log ID #1433

Open
defensivedepth opened this issue Jan 11, 2018 · 0 comments
Open

Comments

@defensivedepth
Copy link

When I start a job through the admin api:

http://site.com/api/admin/scheduler/<ID>/start

I get the following response:

{ "response": { "version": "11.4", "status": 0 } }

Feature request: It would be very useful for the response to return the associated job log id.

Programmatically matching up job logs with its associated crawler or scheduler requires a bit of parsing, as the crawler id is mixed in under scriptData on the job log:

{ "scriptData": "return container.getComponent(\"crawlJob\").logLevel(\"info\").sessionId(\"AWDhczHBC-pNKvFYBZJo\").webConfigIds([\"AWDhczHBC-pNKvFYBZJo\"] as String[]).fileConfigIds([] as String[]).dataConfigIds([] as String[]).jobExecutor(executor).execute();", }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants