Skip to content

Feat/enhance fixed rate scheduling and block data listener#390

Merged
twisti-dev merged 2 commits into
version/26.2from
feat/enhance-fixed-rate-scheduling-and-block-data-listener
Jun 24, 2026
Merged

Feat/enhance fixed rate scheduling and block data listener#390
twisti-dev merged 2 commits into
version/26.2from
feat/enhance-fixed-rate-scheduling-and-block-data-listener

Conversation

@twisti-dev

Copy link
Copy Markdown
Contributor

No description provided.

…ror handling and logging

- add logging capabilities for task execution and exception handling
- introduce catchExceptions parameter to control exception behavior
- update runAtFixedRate and runWithFixedDelay functions to support new logging features
- add runUntil function for conditional execution with error handling
@twisti-dev twisti-dev self-assigned this Jun 24, 2026
@twisti-dev twisti-dev merged commit 74d7354 into version/26.2 Jun 24, 2026
7 checks passed
@twisti-dev twisti-dev deleted the feat/enhance-fixed-rate-scheduling-and-block-data-listener branch June 24, 2026 11:33

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8026083d1d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +40 to +41
if (catchExceptions) {
logging.logger.error("Exception in ${logging.name}", throwable)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid swallowing fatal throwables

When catchExceptions is true (now the default), the scheduler catch blocks pass every Throwable here, so a task that throws a JVM Error such as OutOfMemoryError or LinkageError is only logged and the loop continues. Those are not recoverable task exceptions; swallowing them can leave the process running in a corrupted state instead of letting the coroutine fail. Please limit the caught type to ordinary exceptions or rethrow Error even when exception catching is enabled.

Useful? React with 👍 / 👎.

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