Skip to content

feat(taskworker): Attempt to add healthcheck logic#583

Merged
NicoHinderling merged 2 commits intomainfrom
03-13-feat_taskworker_attempt_to_add_healthcheck_logic
Mar 18, 2026
Merged

feat(taskworker): Attempt to add healthcheck logic#583
NicoHinderling merged 2 commits intomainfrom
03-13-feat_taskworker_attempt_to_add_healthcheck_logic

Conversation

@NicoHinderling
Copy link
Contributor

No description provided.

Copy link
Contributor Author

NicoHinderling commented Mar 13, 2026

@sentry
Copy link
Contributor

sentry bot commented Mar 13, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
Hacker News com.emergetools.hackernews 1.0.2 (13) Release Install Build

@NicoHinderling NicoHinderling marked this pull request as ready for review March 13, 2026 19:11
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@NicoHinderling NicoHinderling force-pushed the 03-13-feat_taskworker_attempt_to_add_healthcheck_logic branch 2 times, most recently from 93739ca to ff9dc65 Compare March 13, 2026 19:16
@NicoHinderling NicoHinderling force-pushed the 03-12-feat_worker_add_taskworker_mode_for_taskbroker_rpc branch from 5b4d191 to e7fae19 Compare March 13, 2026 19:16
Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@NicoHinderling NicoHinderling force-pushed the 03-13-feat_taskworker_attempt_to_add_healthcheck_logic branch from ff9dc65 to 8bb45d8 Compare March 16, 2026 16:36
Base automatically changed from 03-12-feat_worker_add_taskworker_mode_for_taskbroker_rpc to main March 18, 2026 22:30
@NicoHinderling NicoHinderling force-pushed the 03-13-feat_taskworker_attempt_to_add_healthcheck_logic branch from 8bb45d8 to 4f1c4f6 Compare March 18, 2026 22:31
Copy link
Contributor

@chromy chromy left a comment

Choose a reason for hiding this comment

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

lgtm % comments

gocd/templates/vendor/
gocd/generated-pipelines/

# uv
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't want uv.lock here long term - I think we should be using uv.lock but can do this for now.

logger = get_logger(__name__)


DEFAULT_HEALTH_CHECK_FILE_PATH = "/tmp/health"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there only one worker running per node?
Doing "launchpad-taskworker-{os.getpid()}" or something might be better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

supposedly the K8s liveness probe needs a static path baked into the pod spec. A PID-based path would break it. And since each pod has its own isolated /tmp, there's no collision risk anyway

raise ValueError(f"LAUNCHPAD_WORKER_CONCURRENCY must be a valid integer, got: {concurrency_str}")

return WorkerConfig(rpc_hosts=rpc_hosts, concurrency=concurrency)
health_check_file_path = os.getenv("LAUNCHPAD_WORKER_HEALTH_CHECK_FILE_PATH", DEFAULT_HEALTH_CHECK_FILE_PATH)
Copy link
Contributor

Choose a reason for hiding this comment

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

Here also re maybe needing to include the pid/soem random number

@NicoHinderling NicoHinderling merged commit 4cbf534 into main Mar 18, 2026
23 checks passed
@NicoHinderling NicoHinderling deleted the 03-13-feat_taskworker_attempt_to_add_healthcheck_logic branch March 18, 2026 23:23
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.

3 participants