Closed
Description
I've been getting this strange error for some time now - chalked it up to me not adding correct arguments ( - but the thing is; on a "fresh" file this does not happen or at least I think so)
My development.sqlite works fine and the solid_queue too - as the log will tell you - when I throw it some work "manually", but somehow the SolidQueue::RecurringExecution Insert gets the wrong impression of the database...or I don't know
11:48:00 web.1 | [ActiveJob] [writer] TRANSACTION (0.1ms) begin transaction
11:48:00 web.1 | [ActiveJob] [writer] SolidQueue::Job Create (12.5ms) INSERT INTO "solid_queue_jobs" ("queue_name", "class_name", "arguments", "priority", "active_job_id", "scheduled_at", "finished_at", "concurrency_key", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["queue_name", "default"], ["class_name", "BackgroundManagerJob"], ["arguments", "{\"job_class\":\"BackgroundManagerJob\",\"job_id\":\"69bd0679-7599-4f98-96b5-8fe4e5709811\",\"provider_job_id\":null,\"queue_name\":\"default\",\"priority\":null,\"arguments\":[],\"executions\":0,\"exception_executions\":{},\"locale\":\"da\",\"timezone\":\"UTC\",\"enqueued_at\":\"2024-08-23T09:48:00.011104000Z\",\"scheduled_at\":\"2024-08-23T09:48:00.011040000Z\"}"], ["priority", 0], ["active_job_id", "69bd0679-7599-4f98-96b5-8fe4e5709811"], ["scheduled_at", "2024-08-23 09:48:00.011040"], ["finished_at", nil], ["concurrency_key", "[FILTERED]"], ["created_at", "2024-08-23 09:48:00.011582"], ["updated_at", "2024-08-23 09:48:00.011582"]]
11:48:00 web.1 | [ActiveJob] [writer] TRANSACTION (0.0ms) SAVEPOINT active_record_1
11:48:00 web.1 | [ActiveJob] [writer] SolidQueue::Job Load (1.6ms) SELECT "solid_queue_jobs".* FROM "solid_queue_jobs" WHERE "solid_queue_jobs"."id" = ? LIMIT ? [["id", 3470], ["LIMIT", 1]]
11:48:00 web.1 | [ActiveJob] [writer] SolidQueue::ReadyExecution Create (0.2ms) INSERT INTO "solid_queue_ready_executions" ("job_id", "queue_name", "priority", "created_at") VALUES (?, ?, ?, ?) RETURNING "id" [["job_id", 3470], ["queue_name", "default"], ["priority", 0], ["created_at", "2024-08-23 09:48:00.069136"]]
11:48:00 web.1 | [ActiveJob] [writer] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
11:48:00 web.1 | [ActiveJob] Enqueued BackgroundManagerJob (Job ID: 69bd0679-7599-4f98-96b5-8fe4e5709811) to SolidQueue(default)
11:48:00 web.1 | [writer] SolidQueue::RecurringExecution Insert (0.2ms) INSERT INTO "solid_queue_recurring_executions" ("job_id","task_key","run_at","created_at") VALUES (3470, 'background_job_scheduler', '2024-08-23 09:48:00', STRFTIME('%Y-%m-%d %H:%M:%f', 'NOW')) ON CONFLICT ("task_key","run_at") DO NOTHING RETURNING "id"
11:48:00 web.1 | [writer] TRANSACTION (0.0ms) rollback transaction
11:48:00 web.1 | SolidQueue-0.5.0 Error enqueuing recurring task (63.2ms) task: "background_job_scheduler", at: "2024-08-23T09:48:00Z"
11:48:00 web.1 | SolidQueue-0.5.0 Error in thread (0.0ms) error: "ActiveRecord::StatementInvalid SQLite3::CorruptException: database disk image is malformed"
11:48:27 web.1 | [writer] TRANSACTION (0.2ms) begin transaction
11:48:27 web.1 | [writer] SolidQueue::Process Update (4.0ms) UPDATE "solid_queue_processes" SET "last_heartbeat_at" = ? WHERE "solid_queue_processes"."id" = ? [["last_heartbeat_at", "2024-08-23 09:48:27.028474"], ["id", 950]]
11:48:27 web.1 | [writer] TRANSACTION (0.2ms) commit transaction
11:48:27 web.1 | [writer] TRANSACTION (0.1ms) begin transaction
11:48:27 web.1 | [writer] SolidQueue::Process Update (1.3ms) UPDATE "solid_queue_processes" SET "last_heartbeat_at" = ? WHERE "solid_queue_processes"."id" = ? [["last_heartbeat_at", "2024-08-23 09:48:27.082442"], ["id", 951]]
11:48:27 web.1 | [writer] TRANSACTION (0.1ms) commit transaction
11:48:27 web.1 | [writer] TRANSACTION (0.1ms) begin transaction
11:48:27 web.1 | [writer] SolidQueue::Process Update (1.2ms) UPDATE "solid_queue_processes" SET "last_heartbeat_at" = ? WHERE "solid_queue_processes"."id" = ? [["last_heartbeat_at", "2024-08-23 09:48:27.092663"], ["id", 952]]
11:48:27 web.1 | [writer] TRANSACTION (0.1ms) commit transaction
11:48:38 web.1 | [writer] SolidQueue::Job Load (0.2ms) SELECT "solid_queue_jobs".* FROM "solid_queue_jobs" WHERE "solid_queue_jobs"."id" = ? LIMIT ? [["id", 3470], ["LIMIT", 1]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] CompletedEmployeeNotifier Load (0.0ms) SELECT "noticed_events".* FROM "noticed_events" WHERE "noticed_events"."type" = ? AND "noticed_events"."id" = ? LIMIT ? [["type", "CompletedEmployeeNotifier"], ["id", 17], ["LIMIT", 1]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] Performing Noticed::EventJob (Job ID: 2d6a800f-68eb-43c6-9429-dd692cfc7cf6) from SolidQueue(default) enqueued at 2024-08-23T09:48:38.057286000Z with arguments: #<GlobalID:0x00000001250fe058 @uri=#<URI::GID gid://mortimer/CompletedEmployeeNotifier/17>>
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] Noticed::Notification Load (0.1ms) SELECT "noticed_notifications".* FROM "noticed_notifications" WHERE "noticed_notifications"."event_id" = ? [["event_id", 17]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) begin transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Create (0.9ms) INSERT INTO "solid_queue_jobs" ("queue_name", "class_name", "arguments", "priority", "active_job_id", "scheduled_at", "finished_at", "concurrency_key", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["queue_name", "default"], ["class_name", "DeliveryMethods::TurboStream"], ["arguments", "{\"job_class\":\"DeliveryMethods::TurboStream\",\"job_id\":\"a6c32ba2-8aab-4f4a-8cbd-239c84b53503\",\"provider_job_id\":null,\"queue_name\":\"default\",\"priority\":null,\"arguments\":[{\"_aj_serialized\":\"ActiveJob::Serializers::SymbolSerializer\",\"value\":\"turbo_stream\"},{\"_aj_globalid\":\"gid://mortimer/CompletedEmployeeNotifier::Notification/62\"}],\"executions\":0,\"exception_executions\":{},\"locale\":\"da\",\"timezone\":\"UTC\",\"enqueued_at\":\"2024-08-23T09:48:38.157600000Z\",\"scheduled_at\":\"2024-08-23T09:48:38.157479000Z\"}"], ["priority", 0], ["active_job_id", "a6c32ba2-8aab-4f4a-8cbd-239c84b53503"], ["scheduled_at", "2024-08-23 09:48:38.157479"], ["finished_at", nil], ["concurrency_key", "[FILTERED]"], ["created_at", "2024-08-23 09:48:38.157780"], ["updated_at", "2024-08-23 09:48:38.157780"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Load (3.5ms) SELECT "solid_queue_jobs".* FROM "solid_queue_jobs" WHERE "solid_queue_jobs"."id" = ? LIMIT ? [["id", 3471], ["LIMIT", 1]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::ReadyExecution Create (0.1ms) INSERT INTO "solid_queue_ready_executions" ("job_id", "queue_name", "priority", "created_at") VALUES (?, ?, ?, ?) RETURNING "id" [["job_id", 3471], ["queue_name", "default"], ["priority", 0], ["created_at", "2024-08-23 09:48:38.164631"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.1ms) commit transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] Enqueued DeliveryMethods::TurboStream (Job ID: a6c32ba2-8aab-4f4a-8cbd-239c84b53503) to SolidQueue(default) with arguments: :turbo_stream, #<GlobalID:0x000000010445fb00 @uri=#<URI::GID gid://mortimer/CompletedEmployeeNotifier::Notification/62>>
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) begin transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Create (0.9ms) INSERT INTO "solid_queue_jobs" ("queue_name", "class_name", "arguments", "priority", "active_job_id", "scheduled_at", "finished_at", "concurrency_key", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["queue_name", "default"], ["class_name", "DeliveryMethods::TurboStream"], ["arguments", "{\"job_class\":\"DeliveryMethods::TurboStream\",\"job_id\":\"eeae769f-9a24-44ab-a791-bee0e1126060\",\"provider_job_id\":null,\"queue_name\":\"default\",\"priority\":null,\"arguments\":[{\"_aj_serialized\":\"ActiveJob::Serializers::SymbolSerializer\",\"value\":\"turbo_stream\"},{\"_aj_globalid\":\"gid://mortimer/CompletedEmployeeNotifier::Notification/63\"}],\"executions\":0,\"exception_executions\":{},\"locale\":\"da\",\"timezone\":\"UTC\",\"enqueued_at\":\"2024-08-23T09:48:38.168299000Z\",\"scheduled_at\":\"2024-08-23T09:48:38.168250000Z\"}"], ["priority", 0], ["active_job_id", "eeae769f-9a24-44ab-a791-bee0e1126060"], ["scheduled_at", "2024-08-23 09:48:38.168250"], ["finished_at", nil], ["concurrency_key", "[FILTERED]"], ["created_at", "2024-08-23 09:48:38.168454"], ["updated_at", "2024-08-23 09:48:38.168454"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Load (1.3ms) SELECT "solid_queue_jobs".* FROM "solid_queue_jobs" WHERE "solid_queue_jobs"."id" = ? LIMIT ? [["id", 3472], ["LIMIT", 1]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::ReadyExecution Create (0.1ms) INSERT INTO "solid_queue_ready_executions" ("job_id", "queue_name", "priority", "created_at") VALUES (?, ?, ?, ?) RETURNING "id" [["job_id", 3472], ["queue_name", "default"], ["priority", 0], ["created_at", "2024-08-23 09:48:38.173544"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.1ms) commit transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] Enqueued DeliveryMethods::TurboStream (Job ID: eeae769f-9a24-44ab-a791-bee0e1126060) to SolidQueue(default) with arguments: :turbo_stream, #<GlobalID:0x0000000121d57b00 @uri=#<URI::GID gid://mortimer/CompletedEmployeeNotifier::Notification/63>>
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) begin transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Create (1.0ms) INSERT INTO "solid_queue_jobs" ("queue_name", "class_name", "arguments", "priority", "active_job_id", "scheduled_at", "finished_at", "concurrency_key", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["queue_name", "default"], ["class_name", "DeliveryMethods::TurboStream"], ["arguments", "{\"job_class\":\"DeliveryMethods::TurboStream\",\"job_id\":\"0a39fcff-6acb-483a-bf15-954e8c0c2719\",\"provider_job_id\":null,\"queue_name\":\"default\",\"priority\":null,\"arguments\":[{\"_aj_serialized\":\"ActiveJob::Serializers::SymbolSerializer\",\"value\":\"turbo_stream\"},{\"_aj_globalid\":\"gid://mortimer/CompletedEmployeeNotifier::Notification/64\"}],\"executions\":0,\"exception_executions\":{},\"locale\":\"da\",\"timezone\":\"UTC\",\"enqueued_at\":\"2024-08-23T09:48:38.177364000Z\",\"scheduled_at\":\"2024-08-23T09:48:38.177290000Z\"}"], ["priority", 0], ["active_job_id", "0a39fcff-6acb-483a-bf15-954e8c0c2719"], ["scheduled_at", "2024-08-23 09:48:38.177290"], ["finished_at", nil], ["concurrency_key", "[FILTERED]"], ["created_at", "2024-08-23 09:48:38.177524"], ["updated_at", "2024-08-23 09:48:38.177524"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Load (1.1ms) SELECT "solid_queue_jobs".* FROM "solid_queue_jobs" WHERE "solid_queue_jobs"."id" = ? LIMIT ? [["id", 3473], ["LIMIT", 1]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::ReadyExecution Create (0.2ms) INSERT INTO "solid_queue_ready_executions" ("job_id", "queue_name", "priority", "created_at") VALUES (?, ?, ?, ?) RETURNING "id" [["job_id", 3473], ["queue_name", "default"], ["priority", 0], ["created_at", "2024-08-23 09:48:38.182389"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.2ms) commit transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] Enqueued DeliveryMethods::TurboStream (Job ID: 0a39fcff-6acb-483a-bf15-954e8c0c2719) to SolidQueue(default) with arguments: :turbo_stream, #<GlobalID:0x0000000122e13f48 @uri=#<URI::GID gid://mortimer/CompletedEmployeeNotifier::Notification/64>>
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) begin transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Create (1.7ms) INSERT INTO "solid_queue_jobs" ("queue_name", "class_name", "arguments", "priority", "active_job_id", "scheduled_at", "finished_at", "concurrency_key", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["queue_name", "default"], ["class_name", "DeliveryMethods::TurboStream"], ["arguments", "{\"job_class\":\"DeliveryMethods::TurboStream\",\"job_id\":\"44cc48ac-6215-4437-b272-72261bde0fa2\",\"provider_job_id\":null,\"queue_name\":\"default\",\"priority\":null,\"arguments\":[{\"_aj_serialized\":\"ActiveJob::Serializers::SymbolSerializer\",\"value\":\"turbo_stream\"},{\"_aj_globalid\":\"gid://mortimer/CompletedEmployeeNotifier::Notification/65\"}],\"executions\":0,\"exception_executions\":{},\"locale\":\"da\",\"timezone\":\"UTC\",\"enqueued_at\":\"2024-08-23T09:48:38.187525000Z\",\"scheduled_at\":\"2024-08-23T09:48:38.187448000Z\"}"], ["priority", 0], ["active_job_id", "44cc48ac-6215-4437-b272-72261bde0fa2"], ["scheduled_at", "2024-08-23 09:48:38.187448"], ["finished_at", nil], ["concurrency_key", "[FILTERED]"], ["created_at", "2024-08-23 09:48:38.187735"], ["updated_at", "2024-08-23 09:48:38.187735"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::Job Load (1.8ms) SELECT "solid_queue_jobs".* FROM "solid_queue_jobs" WHERE "solid_queue_jobs"."id" = ? LIMIT ? [["id", 3474], ["LIMIT", 1]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] SolidQueue::ReadyExecution Create (0.1ms) INSERT INTO "solid_queue_ready_executions" ("job_id", "queue_name", "priority", "created_at") VALUES (?, ?, ?, ?) RETURNING "id" [["job_id", 3474], ["queue_name", "default"], ["priority", 0], ["created_at", "2024-08-23 09:48:38.194127"]]
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] [writer] TRANSACTION (0.1ms) commit transaction
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] Enqueued DeliveryMethods::TurboStream (Job ID: 44cc48ac-6215-4437-b272-72261bde0fa2) to SolidQueue(default) with arguments: :turbo_stream, #<GlobalID:0x0000000104b9d228 @uri=#<URI::GID gid://mortimer/CompletedEmployeeNotifier::Notification/65>>
11:48:38 web.1 | [ActiveJob] [Noticed::EventJob] [2d6a800f-68eb-43c6-9429-dd692cfc7cf6] Performed Noticed::EventJob (Job ID: 2d6a800f-68eb-43c6-9429-dd692cfc7cf6) from SolidQueue(default) in 61.28ms
11:48:38 web.1 | [writer] SolidQueue::Job Load (0.0ms) SELECT "solid_queue_jobs".* FROM "solid_queue_jobs" WHERE "solid_queue_jobs"."id" = ? LIMIT ? [["id", 3471], ["LIMIT", 1]]
11:48:38 web.1 | [writer] TRANSACTION (0.0ms) begin transaction
11:48:38 web.1 | [writer] SolidQueue::Job Update (0.9ms) UPDATE "solid_queue_jobs" SET "updated_at" = ?, "finished_at" = ? WHERE "solid_queue_jobs"."id" = ? [["updated_at", "2024-08-23 09:48:38.203409"], ["finished_at", "2024-08-23 09:48:38.203409"], ["id", 3470]]
11:48:38 web.1 | [writer] SolidQueue::ClaimedExecution Destroy (0.0ms) DELETE FROM "solid_queue_claimed_executions" WHERE "solid_queue_claimed_executions"."id" = ? [["id", 3648]]
11:48:38 web.1 | [writer] TRANSACTION (0.1ms) commit transaction
Metadata
Metadata
Assignees
Labels
No labels
Activity
wdiechmann commentedon Aug 23, 2024
Starting off of a fresh file (or rather, a salvaged development.sqlite3 with all solid_queue_* tables truncated) this is what greets me:
Telling me all is good and well 😄
rosa commentedon Aug 24, 2024
Huh, this one is so strange, I had never seen it before. When you said:
Do you mean when you enqueue jobs manually? And it breaks when jobs are enqueued because of your app running?
wdiechmann commentedon Aug 24, 2024
wdiechmann commentedon Aug 29, 2024
I'm not 100% sure - but close enough to risk closing this issue with a warning to anyone hitting this 'rabbit hole'
Do not let your
devrun on localhost whilst 1) using any kind of backup/sync service like dropbox/one_drive/synology_drive/et al and 2) putting your localhost into sleep mode - or at least have this little "fixsqlite" readily at hand:bin/fix.sqlrosa commentedon Sep 6, 2024
@wdiechmann, may I ask whether you ran into this again and what your recurring task
was doing?
wdiechmann commentedon Sep 6, 2024
no - or rather I did but each time it's 99% sure that my dropbox or some other backup/sync thing was screwing up the file 'cause if I keep it fresh there is not a problem
as for the 'doing part':
sure - it's still some sandbox-y kind of stuff (eg the crude cron-ish thing will get swapped out for some real cron and what not), but the gist of it is that employees will setup events in a calendar to do some 'auto-punching' for them: as per EU regulation all workers are required to punch in/out - but danish work regulations are very tight as it is and most danish workers are in fact better protected than what the EU regulation proposes, so what we offer is a means to stay compliant, ie show digital trail of punching, with out the worker having to actually do it 😆
I know - it's humbug - but anyways, here's the
config/solid_queue.ymland here is the
BackgroundManagerJobclassand here is the
EmployeeAutoPunchJob(the other two only pump emails out)and in case you're wondering what the
super(**args)is doing - here is theApplicationJoband further, here is the
SqlStatementsand finally here is (part of) the
Employeerosa commentedon Sep 6, 2024
Thank you so much for all the info, really appreciate it! 🙏 🙏
wdiechmann commentedon Sep 6, 2024
context
I did as told in
/environments/development.rbif I Ctrl-C the
devand start it again, here is what I get:(notice lines 12-13-ish where something goes awry - not sure what that is - but it looks like it recovers nicely [see below])
wdiechmann commentedon Sep 6, 2024
ohh @rosa it's me thanking you for all the hard work you put into this! Without open source we'd all still be fighting DLL hell on those pesky windoze machines with no remedies to aid 😄
keep up the wonderful work - and reach out if I can do anything / test anything plz!