joblin 0.1.11 → 0.1.12
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 +4 -4
- data/lib/joblin/batching/compat/sidekiq/web.rb +12 -0
- data/lib/joblin/version.rb +1 -1
- data/spec/internal/log/test.log +69 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 988601efd5b12dd1866c4dd0e6adbe223fd33421929e3bf78ad0ee799a3e6e53
|
|
4
|
+
data.tar.gz: 850bc134faba3424e2bbbce58c7d3daefa4d37d8d76f55c92a7602242f46565a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 727eac8e2f058579bf1f109b0f3faa5658e166c895ec37be6a12c9052c8982a8b6ba46debbc3fff8b780cd4af5a92d28c87164bf26baa3850df2297917db2085
|
|
7
|
+
data.tar.gz: a9c4b246ca613eeb98fc464f3e333a6ff9135fe14c51e4b8fe949d87fe2789da4cc4909d86f77362696b343b252d3bac246a88902df18dd86fc933dcdac16a51
|
|
@@ -39,6 +39,18 @@ module Joblin::Batching::Compat::Sidekiq
|
|
|
39
39
|
(env["rack.route_params"] || {})[key.to_sym]
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
# Read a query-string parameter such as `count` or `page`.
|
|
43
|
+
#
|
|
44
|
+
# Sidekiq 7+ defines `url_params(key)` on the web action and returns the
|
|
45
|
+
# query value only. Sidekiq 6.x has no `url_params`; there the action's
|
|
46
|
+
# `params` is an indifferent hash that already merges the query string,
|
|
47
|
+
# so we read from it. On Sidekiq 7/8 the action's own `url_params`
|
|
48
|
+
# shadows this fallback (a class's instance method wins over one from an
|
|
49
|
+
# included module), so this definition only takes effect on Sidekiq 6.x.
|
|
50
|
+
def url_params(key)
|
|
51
|
+
params[key]
|
|
52
|
+
end
|
|
53
|
+
|
|
42
54
|
def tree_data(root_bid, slice: nil)
|
|
43
55
|
tree_bids = Joblin::Batching::Batch.bid_hierarchy(root_bid, slice: slice)
|
|
44
56
|
|
data/lib/joblin/version.rb
CHANGED
data/spec/internal/log/test.log
CHANGED
|
@@ -63915,3 +63915,72 @@ Migrating to AddResultsToJoblinBackgroundTasks (20250916184852)
|
|
|
63915
63915
|
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
63916
63916
|
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
63917
63917
|
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
|
63918
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mSET search_path TO public[0m
|
|
63919
|
+
[1m[35m (129.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "joblin-test"[0m
|
|
63920
|
+
[1m[35m (55.5ms)[0m [1m[35mCREATE DATABASE "joblin-test" ENCODING = 'unicode'[0m
|
|
63921
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
63922
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
|
63923
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
63924
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-06-22 16:18:10.854599', '2026-06-22 16:18:10.854601') RETURNING "key"[0m
|
|
63925
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(7733673443659166010)[0m
|
|
63926
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
63927
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
63928
|
+
Migrating to CreateJoblinBackgroundTasks (20250903184852)
|
|
63929
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
63930
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "joblin_background_tasks" ("id" bigserial primary key, "creator_type" character varying, "creator_id" bigint, "extra_options" jsonb, "batch_id" character varying, "type" character varying NOT NULL, "workflow_state" character varying DEFAULT 'unscheduled' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
63931
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_joblin_background_tasks_on_creator_type_and_creator_id" ON "joblin_background_tasks" ("creator_type", "creator_id")[0m
|
|
63932
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250903184852') RETURNING "version"[0m
|
|
63933
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
63934
|
+
Migrating to AddResultsToJoblinBackgroundTasks (20250916184852)
|
|
63935
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
63936
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "joblin_background_tasks" ADD "results" jsonb[0m
|
|
63937
|
+
[1m[35m (0.1ms)[0m [1m[35mALTER TABLE "joblin_background_tasks" ADD "error_message" text[0m
|
|
63938
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250916184852') RETURNING "version"[0m
|
|
63939
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
63940
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT pg_advisory_unlock(7733673443659166010)[0m
|
|
63941
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
63942
|
+
[1m[35m (196.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "joblin-test"[0m
|
|
63943
|
+
[1m[35m (74.8ms)[0m [1m[35mCREATE DATABASE "joblin-test" ENCODING = 'unicode'[0m
|
|
63944
|
+
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
63945
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
|
63946
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
63947
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-06-22 18:14:58.102284', '2026-06-22 18:14:58.102286') RETURNING "key"[0m
|
|
63948
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT pg_try_advisory_lock(7733673443659166010)[0m
|
|
63949
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
63950
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
63951
|
+
Migrating to CreateJoblinBackgroundTasks (20250903184852)
|
|
63952
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
63953
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "joblin_background_tasks" ("id" bigserial primary key, "creator_type" character varying, "creator_id" bigint, "extra_options" jsonb, "batch_id" character varying, "type" character varying NOT NULL, "workflow_state" character varying DEFAULT 'unscheduled' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
63954
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_joblin_background_tasks_on_creator_type_and_creator_id" ON "joblin_background_tasks" ("creator_type", "creator_id")[0m
|
|
63955
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250903184852') RETURNING "version"[0m
|
|
63956
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
63957
|
+
Migrating to AddResultsToJoblinBackgroundTasks (20250916184852)
|
|
63958
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN[0m
|
|
63959
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "joblin_background_tasks" ADD "results" jsonb[0m
|
|
63960
|
+
[1m[35m (0.1ms)[0m [1m[35mALTER TABLE "joblin_background_tasks" ADD "error_message" text[0m
|
|
63961
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250916184852') RETURNING "version"[0m
|
|
63962
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
63963
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(7733673443659166010)[0m
|
|
63964
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mSET search_path TO public[0m
|
|
63965
|
+
[1m[35m (309.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "joblin-test"[0m
|
|
63966
|
+
[1m[35m (93.4ms)[0m [1m[35mCREATE DATABASE "joblin-test" ENCODING = 'unicode'[0m
|
|
63967
|
+
[1m[35m (2.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
|
63968
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
|
63969
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
63970
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'test', '2026-06-22 22:33:37.484929', '2026-06-22 22:33:37.484931') RETURNING "key"[0m
|
|
63971
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(7733673443659166010)[0m
|
|
63972
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
63973
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
|
63974
|
+
Migrating to CreateJoblinBackgroundTasks (20250903184852)
|
|
63975
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
|
63976
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "joblin_background_tasks" ("id" bigserial primary key, "creator_type" character varying, "creator_id" bigint, "extra_options" jsonb, "batch_id" character varying, "type" character varying NOT NULL, "workflow_state" character varying DEFAULT 'unscheduled' NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
|
63977
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "index_joblin_background_tasks_on_creator_type_and_creator_id" ON "joblin_background_tasks" ("creator_type", "creator_id")[0m
|
|
63978
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250903184852') RETURNING "version"[0m
|
|
63979
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
63980
|
+
Migrating to AddResultsToJoblinBackgroundTasks (20250916184852)
|
|
63981
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
|
63982
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "joblin_background_tasks" ADD "results" jsonb[0m
|
|
63983
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "joblin_background_tasks" ADD "error_message" text[0m
|
|
63984
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20250916184852') RETURNING "version"[0m
|
|
63985
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
63986
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(7733673443659166010)[0m
|