Skip to content
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

[94] Resumable tasks #95

Merged
merged 1 commit into from
Oct 10, 2024
Merged

[94] Resumable tasks #95

merged 1 commit into from
Oct 10, 2024

Conversation

skcc321
Copy link
Owner

@skcc321 skcc321 commented Oct 10, 2024

The purpose of the PR

_tasks.map.with_index do |task, index|
task if _tasks[0..index].none? { |_task| task.eql?(_task) }
tasks = init_tasks
tasks.map.with_index do |task, index|

Choose a reason for hiding this comment

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

[reek] reported by reviewdog 🐶
FeatureEnvy: DeployPin::Collector#executable refers to 'tasks' more than self (maybe move it to another class?) [https://github.com/troessner/reek/blob/v6.3.0/docs/Feature-Envy.md]

task if _tasks[0..index].none? { |_task| task.eql?(_task) }
tasks = init_tasks
tasks.map.with_index do |task, index|
task if tasks[0..index].none? { |other_task| task.eql?(other_task) }

Choose a reason for hiding this comment

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

[reek] reported by reviewdog 🐶
NestedIterators: DeployPin::Collector#executable contains iterators nested 2 deep [https://github.com/troessner/reek/blob/v6.3.0/docs/Nested-Iterators.md]

record.update(completed_at: Time.current)
end

def increment_progress!(incrementor)

Choose a reason for hiding this comment

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

[reek] reported by reviewdog 🐶
MissingSafeMethod: DeployPin::Task has missing safe method 'increment_progress!' [https://github.com/troessner/reek/blob/v6.3.0/docs/Missing-Safe-Method.md]

end

def prepare
return if recurring

Choose a reason for hiding this comment

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

[reek] reported by reviewdog 🐶
RepeatedConditional: DeployPin::Task tests 'recurring' at least 4 times [https://github.com/troessner/reek/blob/v6.3.0/docs/Repeated-Conditional.md]

@skcc321 skcc321 force-pushed the ResumableTasks#94 branch 5 times, most recently from ca66071 to b9d6e33 Compare October 10, 2024 20:34
@skcc321 skcc321 merged commit 3e9bbf8 into master Oct 10, 2024
13 checks passed
@skcc321 skcc321 deleted the ResumableTasks#94 branch October 10, 2024 20:42
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