-
Notifications
You must be signed in to change notification settings - Fork 1
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
MF Test Platform Init #1
Conversation
6dc62c6
to
df246f5
Compare
lib/rspecq.rb
Outdated
@@ -5,12 +5,13 @@ module RSpecQ | |||
# If a worker haven't executed an example for more than WORKER_LIVENESS_SEC | |||
# seconds, it is considered dead and its reserved work will be put back | |||
# to the queue to be picked up by another worker. | |||
WORKER_LIVENESS_SEC = 60.0 | |||
WORKER_LIVENESS_SEC = 300.0 # 5 mins, leeway for an example that runs for several minutes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be better if we can config it somewhere instead of hard code
lib/rspecq/worker.rb
Outdated
@@ -180,7 +199,28 @@ def try_publish_queue!(queue) | |||
|
|||
if slow_files.any? | |||
jobs.concat(files_to_run - slow_files) | |||
jobs.concat(files_to_example_ids(slow_files)) | |||
total_worker = Integer(ENV["CIRCLE_NODE_TOTAL"] || 420) # TODO: parse from flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use another env var so we can run not only in circleci but other CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
related document: https://moneyforward.kibe.la/notes/224857
In this PR:
WORKER_LIVENESS_SEC