Skip to content

fix(worker): do not submit work when work units are 0 #504

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

JannikSt
Copy link
Member

@JannikSt JannikSt commented Jun 19, 2025

fixes #502

@JannikSt JannikSt requested a review from Copilot June 19, 2025 03:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the bug where work is submitted even when the computed work units are 0 or negative (fixes #502).

  • Replaces the default initialization of work_units with a conditional check that logs an error and returns early when output_flops is non-positive.
  • Ensures that only valid (positive) work units are used further downstream in the worker's processing.

@JannikSt JannikSt merged commit 527d113 into develop Jun 19, 2025
1 check passed
@JannikSt JannikSt deleted the fix/no-empty-workunit-transmissions branch June 25, 2025 12:33
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.

[BUG] Do not submit work to chain when work units are 0
1 participant