solid_queue_mongoid 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.claude/settings.local.json +38 -0
- data/.idea/copilot.data.migration.ask2agent.xml +6 -0
- data/.idea/inspectionProfiles/Project_Default.xml +5 -0
- data/.idea/jsLibraryMappings.xml +6 -0
- data/.idea/misc.xml +17 -0
- data/.idea/modules/bigdecimal-4.0.iml +18 -0
- data/.idea/modules/builder-3.3.iml +18 -0
- data/.idea/modules/concurrent-ruby-1.3.iml +21 -0
- data/.idea/modules/connection_pool-3.0.iml +18 -0
- data/.idea/modules/crass-1.0.iml +19 -0
- data/.idea/modules/docile-1.4.iml +20 -0
- data/.idea/modules/drb-2.2.iml +18 -0
- data/.idea/modules/erb-6.0.iml +23 -0
- data/.idea/modules/et-orbi-1.4.iml +20 -0
- data/.idea/modules/fugit-1.12.iml +18 -0
- data/.idea/modules/irb-1.17.iml +26 -0
- data/.idea/modules/json-2.18.iml +18 -0
- data/.idea/modules/lint_roller-1.1.iml +18 -0
- data/.idea/modules/mongo-2.23.iml +19 -0
- data/.idea/modules/nokogiri-1.19.iml +19 -0
- data/.idea/modules/parser-3.3.10.iml +19 -0
- data/.idea/modules/pp-0.6.iml +18 -0
- data/.idea/modules/prettyprint-0.2.iml +22 -0
- data/.idea/modules/prism-1.9.iml +20 -0
- data/.idea/modules/raabro-1.4.iml +18 -0
- data/.idea/modules/rake-13.3.iml +22 -0
- data/.idea/modules/rdoc-7.2.iml +22 -0
- data/.idea/modules/regexp_parser-2.11.iml +20 -0
- data/.idea/modules/specifications.iml +18 -0
- data/.idea/modules/thor-1.5.iml +20 -0
- data/.idea/modules/timeout-0.6.iml +22 -0
- data/.idea/modules/tsort-0.2.iml +22 -0
- data/.idea/modules/unicode-emoji-4.2.iml +19 -0
- data/.idea/modules.xml +36 -0
- data/.idea/solid_queue_mongoid.iml +3297 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +353 -0
- data/.rspec +3 -0
- data/.rubocop.yml +47 -0
- data/ARCHITECTURE.md +91 -0
- data/CHANGELOG.md +27 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +249 -0
- data/Rakefile +12 -0
- data/lib/solid_queue_mongoid/models/blocked_execution.rb +125 -0
- data/lib/solid_queue_mongoid/models/claimed_execution.rb +134 -0
- data/lib/solid_queue_mongoid/models/classes.rb +32 -0
- data/lib/solid_queue_mongoid/models/execution/dispatching.rb +23 -0
- data/lib/solid_queue_mongoid/models/execution/job_attributes.rb +54 -0
- data/lib/solid_queue_mongoid/models/execution.rb +65 -0
- data/lib/solid_queue_mongoid/models/failed_execution.rb +74 -0
- data/lib/solid_queue_mongoid/models/job/clearable.rb +28 -0
- data/lib/solid_queue_mongoid/models/job/concurrency_controls.rb +93 -0
- data/lib/solid_queue_mongoid/models/job/executable.rb +142 -0
- data/lib/solid_queue_mongoid/models/job/recurrable.rb +14 -0
- data/lib/solid_queue_mongoid/models/job/retryable.rb +51 -0
- data/lib/solid_queue_mongoid/models/job/schedulable.rb +55 -0
- data/lib/solid_queue_mongoid/models/job.rb +103 -0
- data/lib/solid_queue_mongoid/models/pause.rb +25 -0
- data/lib/solid_queue_mongoid/models/process/executor.rb +30 -0
- data/lib/solid_queue_mongoid/models/process/prunable.rb +49 -0
- data/lib/solid_queue_mongoid/models/process.rb +73 -0
- data/lib/solid_queue_mongoid/models/queue.rb +65 -0
- data/lib/solid_queue_mongoid/models/queue_selector.rb +101 -0
- data/lib/solid_queue_mongoid/models/ready_execution.rb +70 -0
- data/lib/solid_queue_mongoid/models/record.rb +147 -0
- data/lib/solid_queue_mongoid/models/recurring_execution.rb +62 -0
- data/lib/solid_queue_mongoid/models/recurring_task/arguments.rb +29 -0
- data/lib/solid_queue_mongoid/models/recurring_task.rb +194 -0
- data/lib/solid_queue_mongoid/models/scheduled_execution.rb +43 -0
- data/lib/solid_queue_mongoid/models/semaphore.rb +179 -0
- data/lib/solid_queue_mongoid/railtie.rb +29 -0
- data/lib/solid_queue_mongoid/version.rb +5 -0
- data/lib/solid_queue_mongoid.rb +136 -0
- data/lib/tasks/solid_queue_mongoid.rake +51 -0
- data/release.sh +13 -0
- data/sig/solid_queue_mongoid.rbs +4 -0
- metadata +173 -0
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="AutoImportSettings">
|
|
4
|
+
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ChangeListManager">
|
|
7
|
+
<list default="true" id="0db87873-4844-479c-9630-707075e3936d" name="Changes" comment="fixed rubcop checks">
|
|
8
|
+
<change afterPath="$PROJECT_DIR$/release.sh" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
11
|
+
</list>
|
|
12
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
13
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
14
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
15
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
16
|
+
</component>
|
|
17
|
+
<component name="CopilotPersistence">
|
|
18
|
+
<persistenceIdMap>
|
|
19
|
+
<entry key="_/Users/washu/Projects/solid_queue_mongoid" value="3A5aHVkneKWdrN6NV4g9P2LgO6o" />
|
|
20
|
+
</persistenceIdMap>
|
|
21
|
+
</component>
|
|
22
|
+
<component name="CopilotUserSelectedChatMode">
|
|
23
|
+
<option name="chatModeId" value="Agent" />
|
|
24
|
+
</component>
|
|
25
|
+
<component name="CopilotUserSelectedModel">
|
|
26
|
+
<selectedModels>
|
|
27
|
+
<entry key="chat-panel" value="Claude Sonnet 4.6" />
|
|
28
|
+
<entry key="agent-panel" value="Claude Sonnet 4.6" />
|
|
29
|
+
</selectedModels>
|
|
30
|
+
</component>
|
|
31
|
+
<component name="EmbeddingIndexingInfo">
|
|
32
|
+
<option name="cachedIndexableFilesCount" value="11744" />
|
|
33
|
+
<option name="fileBasedEmbeddingIndicesEnabled" value="true" />
|
|
34
|
+
</component>
|
|
35
|
+
<component name="Git.Settings">
|
|
36
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
37
|
+
</component>
|
|
38
|
+
<component name="GitHubPullRequestSearchHistory">{
|
|
39
|
+
"lastFilter": {
|
|
40
|
+
"state": "OPEN",
|
|
41
|
+
"assignee": "washu"
|
|
42
|
+
}
|
|
43
|
+
}</component>
|
|
44
|
+
<component name="GithubPullRequestsUISettings">{
|
|
45
|
+
"selectedUrlAndAccountId": {
|
|
46
|
+
"url": "https://github.com/washu/solid_queue_mongoid.git",
|
|
47
|
+
"accountId": "21ad5f89-a1de-402b-a894-c99929c1dfc3"
|
|
48
|
+
}
|
|
49
|
+
}</component>
|
|
50
|
+
<component name="McpProjectServerCommands">
|
|
51
|
+
<commands />
|
|
52
|
+
<urls />
|
|
53
|
+
</component>
|
|
54
|
+
<component name="ProjectColorInfo">{
|
|
55
|
+
"associatedIndex": 1
|
|
56
|
+
}</component>
|
|
57
|
+
<component name="ProjectId" id="3A5aHVkneKWdrN6NV4g9P2LgO6o" />
|
|
58
|
+
<component name="ProjectLevelVcsManager">
|
|
59
|
+
<ConfirmationsSetting value="2" id="Add" />
|
|
60
|
+
</component>
|
|
61
|
+
<component name="ProjectViewState">
|
|
62
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
|
63
|
+
<option name="showLibraryContents" value="true" />
|
|
64
|
+
</component>
|
|
65
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
66
|
+
"keyToString": {
|
|
67
|
+
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
68
|
+
"RSpec.All specs in spec: solid_queue_mongoid.executor": "Run",
|
|
69
|
+
"RSpec.solid_queue_mongoid_spec.executor": "Run",
|
|
70
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
71
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
72
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
73
|
+
"RunOnceActivity.ruby.rubocop.migration.global.runOnSaveToExternalFormatter": "true",
|
|
74
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
75
|
+
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
|
76
|
+
"codeWithMe.voiceChat.enabledByDefault": "false",
|
|
77
|
+
"com.intellij.lang.ruby.rbs.tools.collection.workspace.sync.RbsCollectionUpdateProjectActivity#LAST_UPDATE_TIMESTAMP": "1775988654904",
|
|
78
|
+
"com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
|
|
79
|
+
"git-widget-placeholder": "main",
|
|
80
|
+
"junie.onboarding.icon.badge.shown": "true",
|
|
81
|
+
"node.js.detected.package.eslint": "true",
|
|
82
|
+
"node.js.detected.package.tslint": "true",
|
|
83
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
84
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
85
|
+
"nodejs_package_manager_path": "npm",
|
|
86
|
+
"settings.editor.selected.configurable": "ml.llm.AcpAgentsConfigurable",
|
|
87
|
+
"to.speed.mode.migration.done": "true",
|
|
88
|
+
"vue.rearranger.settings.migration": "true"
|
|
89
|
+
}
|
|
90
|
+
}]]></component>
|
|
91
|
+
<component name="RunManager" selected="RSpec.All specs in spec: solid_queue_mongoid">
|
|
92
|
+
<configuration name="All specs in spec: solid_queue_mongoid" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
|
93
|
+
<module name="solid_queue_mongoid" />
|
|
94
|
+
<predefined_log_file enabled="true" id="RUBY_RSPEC" />
|
|
95
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="" />
|
|
96
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
|
97
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
98
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
99
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
100
|
+
<envs>
|
|
101
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
|
102
|
+
</envs>
|
|
103
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="AUTO" bundleExecEnabled="true" />
|
|
104
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" ENABLE_BRANCH_COVERAGE="true" ENABLE_FORKED_COVERAGE="true">
|
|
105
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
106
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
107
|
+
</COVERAGE_PATTERN>
|
|
108
|
+
</EXTENSION>
|
|
109
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
|
110
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$/spec" />
|
|
111
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
|
112
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATHS" VALUE="" />
|
|
113
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
114
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
115
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
116
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_EXAMPLE_MATCHES" VALUE="false" />
|
|
117
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="LINE_NUMBER_EXAMPLE_IDS" VALUE="" />
|
|
118
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
|
|
119
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
120
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
121
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
122
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
123
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
124
|
+
<method v="2" />
|
|
125
|
+
</configuration>
|
|
126
|
+
<configuration name="Unnamed" type="RSpecRunConfigurationType" factoryName="RSpec" nameIsGenerated="true">
|
|
127
|
+
<module name="solid_queue_mongoid" />
|
|
128
|
+
<predefined_log_file enabled="true" id="RUBY_RSPEC" />
|
|
129
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="" />
|
|
130
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
|
131
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
|
132
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
|
133
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
|
134
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" BUNDLE_MODE="AUTO" bundleExecEnabled="true" />
|
|
135
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov" ENABLE_BRANCH_COVERAGE="true" ENABLE_FORKED_COVERAGE="true">
|
|
136
|
+
<COVERAGE_PATTERN ENABLED="true">
|
|
137
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
|
138
|
+
</COVERAGE_PATTERN>
|
|
139
|
+
</EXTENSION>
|
|
140
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.rails.run.RailsRunConfigurationExtension" SCRATCH_USE_RAILS_RUNNER="false" />
|
|
141
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
|
142
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/solid_queue_mongoid_spec.rb" />
|
|
143
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATHS" VALUE="$MODULE_DIR$/spec/solid_queue_mongoid_spec.rb" />
|
|
144
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
|
145
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
|
146
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
|
147
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_EXAMPLE_MATCHES" VALUE="false" />
|
|
148
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="LINE_NUMBER_EXAMPLE_IDS" VALUE="" />
|
|
149
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
|
150
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
|
151
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
|
152
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
|
153
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
|
154
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
|
155
|
+
<method v="2" />
|
|
156
|
+
</configuration>
|
|
157
|
+
<recent_temporary>
|
|
158
|
+
<list>
|
|
159
|
+
<item itemvalue="RSpec.All specs in spec: solid_queue_mongoid" />
|
|
160
|
+
</list>
|
|
161
|
+
</recent_temporary>
|
|
162
|
+
</component>
|
|
163
|
+
<component name="SharedIndexes">
|
|
164
|
+
<attachedChunks>
|
|
165
|
+
<set>
|
|
166
|
+
<option value="bundled-js-predefined-d6986cc7102b-3bd3a6803838-JavaScript-RM-261.22158.284" />
|
|
167
|
+
</set>
|
|
168
|
+
</attachedChunks>
|
|
169
|
+
</component>
|
|
170
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="true" RAILS_SPRING_PRE_LOADER_OPTION="true" />
|
|
171
|
+
<component name="TaskManager">
|
|
172
|
+
<task active="true" id="Default" summary="Default task">
|
|
173
|
+
<changelist id="0db87873-4844-479c-9630-707075e3936d" name="Changes" comment="" />
|
|
174
|
+
<created>1709835909198</created>
|
|
175
|
+
<option name="number" value="Default" />
|
|
176
|
+
<option name="presentableId" value="Default" />
|
|
177
|
+
<updated>1709835909198</updated>
|
|
178
|
+
<workItem from="1771884800365" duration="984000" />
|
|
179
|
+
<workItem from="1772027623938" duration="3911000" />
|
|
180
|
+
<workItem from="1772032095816" duration="7274000" />
|
|
181
|
+
<workItem from="1774875815039" duration="26961000" />
|
|
182
|
+
<workItem from="1775756584942" duration="17331000" />
|
|
183
|
+
<workItem from="1775842470364" duration="3731000" />
|
|
184
|
+
<workItem from="1775988596194" duration="179000" />
|
|
185
|
+
</task>
|
|
186
|
+
<task id="LOCAL-00001" summary="initial commit udpate">
|
|
187
|
+
<option name="closed" value="true" />
|
|
188
|
+
<created>1772036577668</created>
|
|
189
|
+
<option name="number" value="00001" />
|
|
190
|
+
<option name="presentableId" value="LOCAL-00001" />
|
|
191
|
+
<option name="project" value="LOCAL" />
|
|
192
|
+
<updated>1772036577668</updated>
|
|
193
|
+
</task>
|
|
194
|
+
<task id="LOCAL-00002" summary="initial commit udpate 2 some more specs and test fixes">
|
|
195
|
+
<option name="closed" value="true" />
|
|
196
|
+
<created>1772039692870</created>
|
|
197
|
+
<option name="number" value="00002" />
|
|
198
|
+
<option name="presentableId" value="LOCAL-00002" />
|
|
199
|
+
<option name="project" value="LOCAL" />
|
|
200
|
+
<updated>1772039692870</updated>
|
|
201
|
+
</task>
|
|
202
|
+
<task id="LOCAL-00003" summary="initial commit udpate 3 should al lbe fixes">
|
|
203
|
+
<option name="closed" value="true" />
|
|
204
|
+
<created>1774992658037</created>
|
|
205
|
+
<option name="number" value="00003" />
|
|
206
|
+
<option name="presentableId" value="LOCAL-00003" />
|
|
207
|
+
<option name="project" value="LOCAL" />
|
|
208
|
+
<updated>1774992658037</updated>
|
|
209
|
+
</task>
|
|
210
|
+
<task id="LOCAL-00004" summary="commit 3, should be on parity with solid_queue">
|
|
211
|
+
<option name="closed" value="true" />
|
|
212
|
+
<created>1775823236207</created>
|
|
213
|
+
<option name="number" value="00004" />
|
|
214
|
+
<option name="presentableId" value="LOCAL-00004" />
|
|
215
|
+
<option name="project" value="LOCAL" />
|
|
216
|
+
<updated>1775823236207</updated>
|
|
217
|
+
</task>
|
|
218
|
+
<task id="LOCAL-00005" summary="commit 3, should be on parity with solid_queue">
|
|
219
|
+
<option name="closed" value="true" />
|
|
220
|
+
<created>1775823276452</created>
|
|
221
|
+
<option name="number" value="00005" />
|
|
222
|
+
<option name="presentableId" value="LOCAL-00005" />
|
|
223
|
+
<option name="project" value="LOCAL" />
|
|
224
|
+
<updated>1775823276452</updated>
|
|
225
|
+
</task>
|
|
226
|
+
<task id="LOCAL-00006" summary="commit 4, should be on parity with solid_queue 1.4 now.">
|
|
227
|
+
<option name="closed" value="true" />
|
|
228
|
+
<created>1775825394426</created>
|
|
229
|
+
<option name="number" value="00006" />
|
|
230
|
+
<option name="presentableId" value="LOCAL-00006" />
|
|
231
|
+
<option name="project" value="LOCAL" />
|
|
232
|
+
<updated>1775825394426</updated>
|
|
233
|
+
</task>
|
|
234
|
+
<task id="LOCAL-00007" summary="0.2.0 commit, see README and CHANGELOG">
|
|
235
|
+
<option name="closed" value="true" />
|
|
236
|
+
<created>1775825725408</created>
|
|
237
|
+
<option name="number" value="00007" />
|
|
238
|
+
<option name="presentableId" value="LOCAL-00007" />
|
|
239
|
+
<option name="project" value="LOCAL" />
|
|
240
|
+
<updated>1775825725408</updated>
|
|
241
|
+
</task>
|
|
242
|
+
<task id="LOCAL-00008" summary="0.2.0 commit, see README and CHANGELOG">
|
|
243
|
+
<option name="closed" value="true" />
|
|
244
|
+
<created>1775842856878</created>
|
|
245
|
+
<option name="number" value="00008" />
|
|
246
|
+
<option name="presentableId" value="LOCAL-00008" />
|
|
247
|
+
<option name="project" value="LOCAL" />
|
|
248
|
+
<updated>1775842856878</updated>
|
|
249
|
+
</task>
|
|
250
|
+
<task id="LOCAL-00009" summary="0.2.0 commit, see README and CHANGELOG">
|
|
251
|
+
<option name="closed" value="true" />
|
|
252
|
+
<created>1775843002306</created>
|
|
253
|
+
<option name="number" value="00009" />
|
|
254
|
+
<option name="presentableId" value="LOCAL-00009" />
|
|
255
|
+
<option name="project" value="LOCAL" />
|
|
256
|
+
<updated>1775843002306</updated>
|
|
257
|
+
</task>
|
|
258
|
+
<task id="LOCAL-00010" summary="0.2.0 commit, see README and CHANGELOG">
|
|
259
|
+
<option name="closed" value="true" />
|
|
260
|
+
<created>1775843184405</created>
|
|
261
|
+
<option name="number" value="00010" />
|
|
262
|
+
<option name="presentableId" value="LOCAL-00010" />
|
|
263
|
+
<option name="project" value="LOCAL" />
|
|
264
|
+
<updated>1775843184405</updated>
|
|
265
|
+
</task>
|
|
266
|
+
<task id="LOCAL-00011" summary="0.2.0 commit, see README and CHANGELOG">
|
|
267
|
+
<option name="closed" value="true" />
|
|
268
|
+
<created>1775843323123</created>
|
|
269
|
+
<option name="number" value="00011" />
|
|
270
|
+
<option name="presentableId" value="LOCAL-00011" />
|
|
271
|
+
<option name="project" value="LOCAL" />
|
|
272
|
+
<updated>1775843323123</updated>
|
|
273
|
+
</task>
|
|
274
|
+
<task id="LOCAL-00012" summary="CI fixes">
|
|
275
|
+
<option name="closed" value="true" />
|
|
276
|
+
<created>1775843771409</created>
|
|
277
|
+
<option name="number" value="00012" />
|
|
278
|
+
<option name="presentableId" value="LOCAL-00012" />
|
|
279
|
+
<option name="project" value="LOCAL" />
|
|
280
|
+
<updated>1775843771409</updated>
|
|
281
|
+
</task>
|
|
282
|
+
<task id="LOCAL-00013" summary="fixed rubcop checks">
|
|
283
|
+
<option name="closed" value="true" />
|
|
284
|
+
<created>1775843990017</created>
|
|
285
|
+
<option name="number" value="00013" />
|
|
286
|
+
<option name="presentableId" value="LOCAL-00013" />
|
|
287
|
+
<option name="project" value="LOCAL" />
|
|
288
|
+
<updated>1775843990017</updated>
|
|
289
|
+
</task>
|
|
290
|
+
<task id="LOCAL-00014" summary="fixed rubcop checks">
|
|
291
|
+
<option name="closed" value="true" />
|
|
292
|
+
<created>1775847032971</created>
|
|
293
|
+
<option name="number" value="00014" />
|
|
294
|
+
<option name="presentableId" value="LOCAL-00014" />
|
|
295
|
+
<option name="project" value="LOCAL" />
|
|
296
|
+
<updated>1775847032971</updated>
|
|
297
|
+
</task>
|
|
298
|
+
<task id="LOCAL-00015" summary="fixed rubcop checks">
|
|
299
|
+
<option name="closed" value="true" />
|
|
300
|
+
<created>1775847637059</created>
|
|
301
|
+
<option name="number" value="00015" />
|
|
302
|
+
<option name="presentableId" value="LOCAL-00015" />
|
|
303
|
+
<option name="project" value="LOCAL" />
|
|
304
|
+
<updated>1775847637059</updated>
|
|
305
|
+
</task>
|
|
306
|
+
<option name="localTasksCounter" value="16" />
|
|
307
|
+
<servers />
|
|
308
|
+
</component>
|
|
309
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
310
|
+
<option name="version" value="3" />
|
|
311
|
+
</component>
|
|
312
|
+
<component name="Vcs.Log.Tabs.Properties">
|
|
313
|
+
<option name="TAB_STATES">
|
|
314
|
+
<map>
|
|
315
|
+
<entry key="MAIN">
|
|
316
|
+
<value>
|
|
317
|
+
<State />
|
|
318
|
+
</value>
|
|
319
|
+
</entry>
|
|
320
|
+
</map>
|
|
321
|
+
</option>
|
|
322
|
+
</component>
|
|
323
|
+
<component name="VcsContentAnnotationSettings">
|
|
324
|
+
<option name="myLimit" value="2678400000" />
|
|
325
|
+
</component>
|
|
326
|
+
<component name="VcsManagerConfiguration">
|
|
327
|
+
<MESSAGE value="initial commit udpate" />
|
|
328
|
+
<MESSAGE value="initial commit udpate 2 some more specs and test fixes" />
|
|
329
|
+
<MESSAGE value="initial commit udpate 3 should al lbe fixes" />
|
|
330
|
+
<MESSAGE value="commit 3, should be on parity with solid_queue" />
|
|
331
|
+
<MESSAGE value="commit 4, should be on parity with solid_queue 1.4 now." />
|
|
332
|
+
<MESSAGE value="0.2.0 commit, see README and CHANGELOG" />
|
|
333
|
+
<MESSAGE value="CI fixes" />
|
|
334
|
+
<MESSAGE value="fixed rubcop checks" />
|
|
335
|
+
<option name="LAST_COMMIT_MESSAGE" value="fixed rubcop checks" />
|
|
336
|
+
</component>
|
|
337
|
+
<component name="XSLT-Support.FileAssociations.UIState">
|
|
338
|
+
<expand />
|
|
339
|
+
<select />
|
|
340
|
+
</component>
|
|
341
|
+
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
|
342
|
+
<SUITE FILE_PATH="coverage/solid_queue_mongoid@All_specs_in_spec__solid_queue_mongoid.rcov" NAME="All specs in spec: solid_queue_mongoid Coverage Results" MODIFIED="1772039391662" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="solid_queue_mongoid" />
|
|
343
|
+
<SUITE FILE_PATH="coverage/solid_queue_mongoid@solid_queue_mongoid_spec.rcov" NAME="solid_queue_mongoid_spec Coverage Results" MODIFIED="1772032125659" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="solid_queue_mongoid" />
|
|
344
|
+
</component>
|
|
345
|
+
<component name="github-copilot-workspace">
|
|
346
|
+
<instructionFileLocations>
|
|
347
|
+
<option value=".github/instructions" />
|
|
348
|
+
</instructionFileLocations>
|
|
349
|
+
<promptFileLocations>
|
|
350
|
+
<option value=".github/prompts" />
|
|
351
|
+
</promptFileLocations>
|
|
352
|
+
</component>
|
|
353
|
+
</project>
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 3.2
|
|
3
|
+
NewCops: disable
|
|
4
|
+
SuggestExtensions: false
|
|
5
|
+
|
|
6
|
+
Style/StringLiterals:
|
|
7
|
+
EnforcedStyle: double_quotes
|
|
8
|
+
|
|
9
|
+
Style/StringLiteralsInInterpolation:
|
|
10
|
+
EnforcedStyle: double_quotes
|
|
11
|
+
|
|
12
|
+
# Internal library classes don't need doc comments
|
|
13
|
+
Style/Documentation:
|
|
14
|
+
Enabled: false
|
|
15
|
+
|
|
16
|
+
# Class vars are used intentionally via mattr_accessor
|
|
17
|
+
Style/ClassVars:
|
|
18
|
+
Enabled: false
|
|
19
|
+
|
|
20
|
+
# RSpec blocks are inherently long; rake tasks too
|
|
21
|
+
Metrics/BlockLength:
|
|
22
|
+
Exclude:
|
|
23
|
+
- "spec/**/*"
|
|
24
|
+
- "lib/tasks/**/*"
|
|
25
|
+
- "**/*.gemspec"
|
|
26
|
+
|
|
27
|
+
# Some methods are inherently complex (MongoDB transaction stubs, etc.)
|
|
28
|
+
Metrics/MethodLength:
|
|
29
|
+
Max: 25
|
|
30
|
+
|
|
31
|
+
Metrics/AbcSize:
|
|
32
|
+
Max: 25
|
|
33
|
+
|
|
34
|
+
Metrics/CyclomaticComplexity:
|
|
35
|
+
Max: 12
|
|
36
|
+
|
|
37
|
+
Metrics/PerceivedComplexity:
|
|
38
|
+
Max: 12
|
|
39
|
+
|
|
40
|
+
Metrics/ClassLength:
|
|
41
|
+
Max: 200
|
|
42
|
+
|
|
43
|
+
Metrics/ModuleLength:
|
|
44
|
+
Max: 150
|
|
45
|
+
|
|
46
|
+
Metrics/ParameterLists:
|
|
47
|
+
Max: 7
|
data/ARCHITECTURE.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Architecture
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
`solid_queue_mongoid` provides Mongoid-based models that mirror the structure of SolidQueue's ActiveRecord models. This allows SolidQueue to work with MongoDB instead of PostgreSQL/MySQL/SQLite.
|
|
6
|
+
|
|
7
|
+
## Design Approach
|
|
8
|
+
|
|
9
|
+
### Why Not Adapter Pattern?
|
|
10
|
+
|
|
11
|
+
SolidQueue's models inherit from `ActiveRecord::Base` and use ActiveRecord-specific features throughout (transactions, locking, `insert_all`, etc.). An adapter pattern would be extremely complex and fragile.
|
|
12
|
+
|
|
13
|
+
### Model Replacement Strategy
|
|
14
|
+
|
|
15
|
+
Instead, we:
|
|
16
|
+
|
|
17
|
+
1. **Reimplement models** using Mongoid that match SolidQueue's API surface
|
|
18
|
+
2. **Load before SolidQueue** and prevent SolidQueue's AR models from loading
|
|
19
|
+
3. **Maintain API compatibility** so business logic works unchanged
|
|
20
|
+
4. **Mirror structure** so updates from SolidQueue can be easily ported
|
|
21
|
+
|
|
22
|
+
## Staying in Sync with SolidQueue
|
|
23
|
+
|
|
24
|
+
### When SolidQueue Updates
|
|
25
|
+
|
|
26
|
+
1. Check SolidQueue's CHANGELOG
|
|
27
|
+
2. For **business logic changes** in model methods → port to our models
|
|
28
|
+
3. For **new fields** → add to our Mongoid field definitions
|
|
29
|
+
4. For **new indexes** → add Mongoid index declarations
|
|
30
|
+
5. For **new models** → create equivalent Mongoid model
|
|
31
|
+
|
|
32
|
+
### What We Don't Need to Port
|
|
33
|
+
|
|
34
|
+
- Database migrations (we use Mongoid schema)
|
|
35
|
+
- ActiveRecord-specific code (transactions, locking strategies)
|
|
36
|
+
- SQL-specific optimizations
|
|
37
|
+
|
|
38
|
+
### Testing Compatibility
|
|
39
|
+
|
|
40
|
+
Run SolidQueue's test suite against our Mongoid models to ensure API compatibility.
|
|
41
|
+
|
|
42
|
+
## Key Differences from ActiveRecord
|
|
43
|
+
|
|
44
|
+
### Transactions
|
|
45
|
+
MongoDB transactions require replica sets. We fall back to non-transactional operation when not available.
|
|
46
|
+
|
|
47
|
+
### Locking
|
|
48
|
+
- `FOR UPDATE SKIP LOCKED` → Not available in MongoDB
|
|
49
|
+
- We use atomic operations (`$inc`, `findAndModify`) instead
|
|
50
|
+
|
|
51
|
+
### Bulk Operations
|
|
52
|
+
- `insert_all` → Individual inserts (MongoDB has `insertMany` but Mongoid doesn't expose it the same way)
|
|
53
|
+
- `upsert_all` → Individual find_one_and_replace operations
|
|
54
|
+
|
|
55
|
+
### IDs
|
|
56
|
+
- ActiveRecord uses `bigint` IDs
|
|
57
|
+
- Mongoid uses `BSON::ObjectId`
|
|
58
|
+
- This affects foreign key relationships
|
|
59
|
+
|
|
60
|
+
## Module Structure
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
lib/solid_queue_mongoid/
|
|
64
|
+
models/
|
|
65
|
+
record.rb # Base model (replaces AR::Base)
|
|
66
|
+
job.rb # Job model
|
|
67
|
+
job/
|
|
68
|
+
executable.rb # Mirrors SolidQueue::Job::Executable
|
|
69
|
+
clearable.rb # Mirrors SolidQueue::Job::Clearable
|
|
70
|
+
...
|
|
71
|
+
execution.rb # Base execution
|
|
72
|
+
ready_execution.rb # Ready jobs
|
|
73
|
+
claimed_execution.rb # In-progress jobs
|
|
74
|
+
...
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Each file mirrors its SolidQueue counterpart in `app/models/solid_queue/`.
|
|
78
|
+
|
|
79
|
+
## Version Compatibility
|
|
80
|
+
|
|
81
|
+
| SolidQueue Version | solid_queue_mongoid Version | Status |
|
|
82
|
+
|--------------------|----------------------------|---------|
|
|
83
|
+
| 1.0.x - 1.3.x | 0.1.0 | Initial implementation |
|
|
84
|
+
|
|
85
|
+
## Contributing
|
|
86
|
+
|
|
87
|
+
When porting changes from SolidQueue:
|
|
88
|
+
|
|
89
|
+
1. Reference the SolidQueue commit/PR
|
|
90
|
+
2. Explain any deviations due to MongoDB differences
|
|
91
|
+
3. Update this document if architectural changes are needed
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## [Unreleased]
|
|
2
|
+
|
|
3
|
+
## [0.3.0] - 2026-04-10
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- `fixed CI.yml`
|
|
7
|
+
- `fixed Rubocop settings and results.`
|
|
8
|
+
|
|
9
|
+
## [0.2.0] - 2026-04-10
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `RecurringTask.create_dynamic_task(key, **options)` — create recurring tasks at runtime without restarting the scheduler (solid_queue 1.4.0 parity)
|
|
13
|
+
- `RecurringTask.delete_dynamic_task(key)` — remove a dynamic recurring task at runtime
|
|
14
|
+
- `RecurringTask.dynamic` scope — query tasks created dynamically (`static: false`)
|
|
15
|
+
- `RecurringTask` validates that `class_name` resolves to an existing class (`ensure_existing_job_class`)
|
|
16
|
+
- `Record.use_index(*indexes)` — translates solid_queue MySQL index hints to MongoDB `.hint()` calls via a per-model `INDEX_HINTS` mapping; no-op for unknown index names
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- `RecurringTask.from_configuration` now accepts `static:` option (defaults `true`); previously hardcoded
|
|
20
|
+
- `BlockedExecution` indexes updated to match solid_queue 1.4.0 schema: `(concurrency_key, priority, job_id)` for release queries and `(expires_at, concurrency_key)` for maintenance
|
|
21
|
+
- `BlockedExecution::INDEX_HINTS` maps solid_queue MySQL index names to their MongoDB equivalents so `use_index` hints are applied correctly
|
|
22
|
+
- `BlockedExecution.release_one` no longer wraps in an outer `Mongoid.transaction` (MongoDB does not support nested sessions; `#release` already manages its own transaction)
|
|
23
|
+
- Minimum `solid_queue` version tightened from `~> 1.0` to `>= 1.4.0, < 2.0`
|
|
24
|
+
|
|
25
|
+
## [0.1.0] - 2026-02-23
|
|
26
|
+
|
|
27
|
+
- Initial release
|
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
[INSERT CONTACT METHOD].
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
123
|
+
|
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
+
|
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|