Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Job Queues
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Services
Job Queues
Commits
946e5621
Verified
Commit
946e5621
authored
Apr 25, 2024
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: hide database debug message
#59
parent
a49793d9
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.idea/workspace.xml
+36
-36
36 additions, 36 deletions
.idea/workspace.xml
database.go
+0
-2
0 additions, 2 deletions
database.go
nix/scripts/deploy.nix
+2
-2
2 additions, 2 deletions
nix/scripts/deploy.nix
nix/scripts/go-task.nix
+58
-59
58 additions, 59 deletions
nix/scripts/go-task.nix
with
96 additions
and
99 deletions
.idea/workspace.xml
+
36
−
36
View file @
946e5621
...
@@ -25,10 +25,10 @@
...
@@ -25,10 +25,10 @@
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$"
/>
<option
name=
"RECENT_GIT_ROOT_PATH"
value=
"$PROJECT_DIR$"
/>
</component>
</component>
<component
name=
"PhpWorkspaceProjectConfiguration"
interpreter_name=
"PHP 8.2"
/>
<component
name=
"PhpWorkspaceProjectConfiguration"
interpreter_name=
"PHP 8.2"
/>
<component
name=
"ProjectColorInfo"
>
<![CDATA[
{
<component
name=
"ProjectColorInfo"
>
{
"
customColor
": ""
,
"
customColor
"
:
""
,
"
associatedIndex
"
: 8
"
associatedIndex
"
: 8
}
]]>
</component>
}
</component>
<component
name=
"ProjectId"
id=
"2fGcSxoYpsPbNVbRh8sUxQtBiHv"
/>
<component
name=
"ProjectId"
id=
"2fGcSxoYpsPbNVbRh8sUxQtBiHv"
/>
<component
name=
"ProjectViewState"
>
<component
name=
"ProjectViewState"
>
<option
name=
"flattenModules"
value=
"true"
/>
<option
name=
"flattenModules"
value=
"true"
/>
...
@@ -38,37 +38,37 @@
...
@@ -38,37 +38,37 @@
<option
name=
"sortByType"
value=
"true"
/>
<option
name=
"sortByType"
value=
"true"
/>
<option
name=
"sortKey"
value=
"BY_TYPE"
/>
<option
name=
"sortKey"
value=
"BY_TYPE"
/>
</component>
</component>
<component
name=
"PropertiesComponent"
>
<![CDATA[
{
<component
name=
"PropertiesComponent"
>
{
"
keyToString
"
: {
"
keyToString
"
: {
"
DefaultGoTemplateProperty
": "
Go File
"
,
"
DefaultGoTemplateProperty
"
:
"
Go File
"
,
"
Go Test.TestDummyRunnable in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestDummyRunnable in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestManagerEventHandling in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestManagerEventHandling in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestResetStats in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestResetStats in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestRoundTrip in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestRoundTrip in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestScheduleJob in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestScheduleJob in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestStructure in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestStructure in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestTimeFunctionSame in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestTimeFunctionSame in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestWriteToDB1 in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestWriteToDB1 in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestWriteToDB2 in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestWriteToDB2 in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.TestWriteToDB4 in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.TestWriteToDB4 in gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
Go Test.go test gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
": "Debug"
,
"
Go Test.go test gitlab.schukai.com/oss/libraries/go/services/job-queues.executor
"
:
"
Debug
"
,
"
RunOnceActivity.ShowReadmeOnStart
": "true"
,
"
RunOnceActivity.ShowReadmeOnStart
"
:
"
true
"
,
"
RunOnceActivity.go.formatter.settings.were.checked
": "true"
,
"
RunOnceActivity.go.formatter.settings.were.checked
"
:
"
true
"
,
"
RunOnceActivity.go.migrated.go.modules.settings
": "true"
,
"
RunOnceActivity.go.migrated.go.modules.settings
"
:
"
true
"
,
"
SHARE_PROJECT_CONFIGURATION_FILES
": "true"
,
"
SHARE_PROJECT_CONFIGURATION_FILES
"
:
"
true
"
,
"
git-widget-placeholder
": "master"
,
"
git-widget-placeholder
"
:
"
master
"
,
"
go.import.settings.migrated
": "true"
,
"
go.import.settings.migrated
"
:
"
true
"
,
"
go.sdk.automatically.set
": "true"
,
"
go.sdk.automatically.set
"
:
"
true
"
,
"
last_opened_file_path
": "
/home/vs/workspaces/oss/go-libs/job-queues/nix/scripts
"
,
"
last_opened_file_path
"
:
"
/home/vs/workspaces/oss/go-libs/job-queues/nix/scripts
"
,
"
node.js.detected.package.eslint
": "true"
,
"
node.js.detected.package.eslint
"
:
"
true
"
,
"
node.js.detected.package.tslint
": "true"
,
"
node.js.detected.package.tslint
"
:
"
true
"
,
"
node.js.selected.package.eslint
": "
(autodetect)
"
,
"
node.js.selected.package.eslint
"
:
"
(autodetect)
"
,
"
node.js.selected.package.tslint
": "
(autodetect)
"
,
"
node.js.selected.package.tslint
"
:
"
(autodetect)
"
,
"
nodejs_package_manager_path
": "npm"
,
"
nodejs_package_manager_path
"
:
"
npm
"
,
"
settings.editor.selected.configurable
": "
http.proxy
"
,
"
settings.editor.selected.configurable
"
:
"
http.proxy
"
,
"
vue.rearranger.settings.migration
": "true"
"
vue.rearranger.settings.migration
"
:
"
true
"
}
}
}
]]>
</component>
}
</component>
<component
name=
"RecentsManager"
>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"$PROJECT_DIR$/nix/scripts"
/>
<recent
name=
"$PROJECT_DIR$/nix/scripts"
/>
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
<module
name=
"job-queues"
/>
<module
name=
"job-queues"
/>
<working_directory
value=
"$PROJECT_DIR$"
/>
<working_directory
value=
"$PROJECT_DIR$"
/>
<go_parameters
value=
"-i"
/>
<go_parameters
value=
"-i"
/>
<kind
/>
<kind
value=
"FILE"
/>
<directory
value=
"$PROJECT_DIR$"
/>
<directory
value=
"$PROJECT_DIR$"
/>
<filePath
value=
"$PROJECT_DIR$"
/>
<filePath
value=
"$PROJECT_DIR$"
/>
<method
v=
"2"
/>
<method
v=
"2"
/>
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
<module
name=
"job-queues"
/>
<module
name=
"job-queues"
/>
<working_directory
value=
"$PROJECT_DIR$"
/>
<working_directory
value=
"$PROJECT_DIR$"
/>
<go_parameters
value=
"-i"
/>
<go_parameters
value=
"-i"
/>
<kind
/>
<kind
value=
"DIRECTORY"
/>
<directory
value=
"$PROJECT_DIR$"
/>
<directory
value=
"$PROJECT_DIR$"
/>
<filePath
value=
"$PROJECT_DIR$"
/>
<filePath
value=
"$PROJECT_DIR$"
/>
<framework
value=
"gotest"
/>
<framework
value=
"gotest"
/>
...
...
This diff is collapsed.
Click to expand it.
database.go
+
0
−
2
View file @
946e5621
...
@@ -5,7 +5,6 @@ package jobqueue
...
@@ -5,7 +5,6 @@ package jobqueue
import
(
import
(
"errors"
"errors"
"fmt"
"gorm.io/gorm"
"gorm.io/gorm"
"strings"
"strings"
"time"
"time"
...
@@ -20,7 +19,6 @@ func (s *JobSyncer) CheckAndSaveOrUpdate(job JobPersistence) error {
...
@@ -20,7 +19,6 @@ func (s *JobSyncer) CheckAndSaveOrUpdate(job JobPersistence) error {
}
}
db
:=
s
.
manager
.
database
db
:=
s
.
manager
.
database
fmt
.
Println
(
"Database: "
,
db
)
var
existing
JobPersistence
var
existing
JobPersistence
result
:=
db
.
Where
(
"id = ?"
,
job
.
GetID
())
.
First
(
&
existing
)
result
:=
db
.
Where
(
"id = ?"
,
job
.
GetID
())
.
First
(
&
existing
)
...
...
This diff is collapsed.
Click to expand it.
nix/scripts/deploy.nix
+
2
−
2
View file @
946e5621
This diff is collapsed.
Click to expand it.
nix/scripts/go-task.nix
+
58
−
59
View file @
946e5621
...
@@ -63,7 +63,6 @@
...
@@ -63,7 +63,6 @@
env:
env:
USER_WORKING_DIR: "{{.USER_WORKING_DIR}}"
USER_WORKING_DIR: "{{.USER_WORKING_DIR}}"
''
;
''
;
};
};
in
in
pkgs
.
writeShellScriptBin
"task"
''
pkgs
.
writeShellScriptBin
"task"
''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment