Skip to content

feat(scheduler): display jobLogId from scheduler start API response#27

Merged
marevol merged 1 commit intomainfrom
feat/scheduler-start-job-log-id
Mar 28, 2026
Merged

feat(scheduler): display jobLogId from scheduler start API response#27
marevol merged 1 commit intomainfrom
feat/scheduler-start-job-log-id

Conversation

@marevol
Copy link
Copy Markdown
Contributor

@marevol marevol commented Mar 28, 2026

Summary

Support the new jobLogId field added in codelibs/fess#3103. When a scheduler is started via the CLI, the pre-generated job log ID is now displayed in text output, allowing users to track job execution.

Changes Made

  • src/fessctl/commands/scheduler.py: Extract jobLogId from the scheduler start API response and append it to the success message in text output when present
  • tests/unit/test_scheduler_start.py (new): 5 unit tests covering jobLogId present, absent (old Fess), null (logging disabled), JSON output, and error cases
  • tests/unit/test_client.py: Updated mock response in test_start_scheduler to include jobLogId

Testing

  • All 104 unit tests pass (uv run pytest tests/unit/ -v)
  • Codex review gate passed with zero blocking issues
  • Backward compatible: old Fess versions without jobLogId field produce identical output to before

Breaking Changes

None. The change is purely additive.

Additional Notes

Support the new jobLogId field added in codelibs/fess#3103. When a
scheduler is started and job logging is enabled, the API now returns
a pre-generated job log ID. Display it in text output so users can
track job execution. JSON/YAML output already includes it via raw
response dump. Backward compatible with older Fess versions.
@marevol marevol merged commit 0deeb82 into main Mar 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant