Skip to content

Add Apify client and workflow context helper - #14

Merged
zewelor merged 3 commits into
mainfrom
add_apify_client
Mar 21, 2026
Merged

Add Apify client and workflow context helper#14
zewelor merged 3 commits into
mainfrom
add_apify_client

Conversation

@zewelor

@zewelor zewelor commented Mar 21, 2026

Copy link
Copy Markdown
Contributor
  • Add R3x::Client::Apify HTTP client to run and poll Apify Actors.
  • Implement run_actor, get_run, wait_for_run and raw methods.
  • Use Faraday with JSON middleware, auth header, timeouts, and terminal status detection to manage Actor run lifecycle.
  • Expose apify(api_key_env:) on workflow context using R3x::Env.secure_fetch so workflows can construct the client.
  • Added app/lib/r3x/client/apify.rb
  • Updated lib/r3x/workflow/context.rb

- Add `R3x::Client::Apify` HTTP client to run and poll Apify Actors.
- Implement `run_actor`, `get_run`, `wait_for_run` and `raw` methods.
- Use Faraday with JSON middleware, auth header, timeouts, and terminal
  status detection to manage Actor run lifecycle.
- Expose `apify(api_key_env:)` on workflow context using
  `R3x::Env.secure_fetch` so workflows can construct the client.
- Added `app/lib/r3x/client/apify.rb`
- Updated `lib/r3x/workflow/context.rb`
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

zewelor added 2 commits March 21, 2026 07:09
- Close `apify` helper in `lib/r3x/workflow/context.rb` to fix method
  definition and restore correct behavior
- Delete `test/workflows/summerhouse_monitoring_test.rb` (stale,
  filesystem-dependent workflow tests that caused flakiness)
- Keep runtime helpers correct and reduce brittle, environment-
  dependent tests that ran during CI
@zewelor
zewelor merged commit fadde13 into main Mar 21, 2026
4 checks passed
@zewelor
zewelor deleted the add_apify_client branch March 21, 2026 07:21
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