{"id":37993081,"url":"https://github.com/ahydrax/hangfire.atoms","last_synced_at":"2026-02-09T07:02:13.961Z","repository":{"id":35461750,"uuid":"148231670","full_name":"ahydrax/Hangfire.Atoms","owner":"ahydrax","description":"Execute multiple jobs as a one atomic job.","archived":false,"fork":false,"pushed_at":"2025-03-30T03:24:52.000Z","size":107,"stargazers_count":23,"open_issues_count":5,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-17T04:58:13.214Z","etag":null,"topics":["atoms","hangfire"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Hangfire.Atoms","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahydrax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-10T23:25:06.000Z","updated_at":"2024-02-13T17:07:34.000Z","dependencies_parsed_at":"2025-03-30T03:23:36.224Z","dependency_job_id":"50fe7b6d-b195-47fb-b40c-19d79fdd4f72","html_url":"https://github.com/ahydrax/Hangfire.Atoms","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ahydrax/Hangfire.Atoms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahydrax%2FHangfire.Atoms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahydrax%2FHangfire.Atoms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahydrax%2FHangfire.Atoms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahydrax%2FHangfire.Atoms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahydrax","download_url":"https://codeload.github.com/ahydrax/Hangfire.Atoms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahydrax%2FHangfire.Atoms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29258625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atoms","hangfire"],"created_at":"2026-01-16T18:45:08.371Z","updated_at":"2026-02-09T07:02:13.948Z","avatar_url":"https://github.com/ahydrax.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hangfire.Atoms\n[![NuGet](https://img.shields.io/nuget/v/Hangfire.Atoms.svg)](https://www.nuget.org/packages/Hangfire.Atoms/)\n\nExecute multiple jobs as a single atomic job.\n\n## READ THIS BEFORE UPGRADE\nIf you're coming from version `\u003c=0.3` you have to wait till your atomic jobs (in enqueued, scheduled, awaiting, etc. states) finishes as in version `0.4` data schema has been changed dramatically and this can lead to job state corruption.\n\n\nThis affects only existing users. New users have not to worry about anything.\n\n## Requirements\n* The storage you chosen must implement `JobStorageConnection` \u0026 `JobStorageTransaction`\n* NET Standard 2.0 compatible project\n\n## Setup\nInstall a package from Nuget. Then configure your server and dashboard like this:\n\n```csharp\nservices.AddHangfire(configuration =\u003e\n    {\n        configuration.UseStorage(yourStorage);\n        configuration.UseAtoms();\n    });\n```\nOr this:\n\n```csharp\nGlobalConfiguration.UseStorage(yourStorage);\nGlobalConfiguration.UseAtoms();\n```\n\nYou **must** setup Hangfire storage before calling `UseAtoms();`.\n\n## Usage\nAdditional extension methods are added for `IBackgroundJobClient`.\n\n### Atoms\n\n```csharp\nvar client = new BackgroundJobClient();\n\n// Enqueue\nvar atomId = client.Enqueue(\"atom-1\", builder =\u003e\n    {\n        for (var i = 0; i \u003c 50; i++)\n        {\n            builder.Enqueue(() =\u003e DoWork());\n        }\n    });\n\n// Continuations\nvar job1 = client.Enqueue(() =\u003e DoPrepare());\nvar atomId = client.ContinueWith(job1, \"atom-2\", builder =\u003e\n    {\n        for (var i = 0; i \u003c 50; i++)\n        {\n            builder.Enqueue(() =\u003e DoWork());\n        }\n    });\n\n// Scheduling\nvar atomId = client.Schedule(\"atom-3\", TimeSpan.FromSeconds(3), builder =\u003e\n    {\n        for (var i = 0; i \u003c 50; i++)\n        {\n            builder.Enqueue(() =\u003e DoWork());\n        }\n    });\n\n// Atoms can be used as a common job which means you can continue them\nclient.ContinueWith(atomId, () =\u003e Done());\n```\n\n### Triggers\nTriggers are event-like primitives. You can subscribe to it and set it manually whenever you need it.\n\n```csharp\n// Triggers\nvar triggerJobId = client.OnTriggerSet(\"trigger-1\");\nclient.ContinueWith(triggerJobId, () =\u003e DoWork());\n\n// Set trigger manually when you need it\nclient.Schedule(() =\u003e SetTrigger(\"trigger-1\"), TimeSpan.FromSeconds(10));\n```\n\n## License\nAuthored by: Viktor Svyatokha (ahydrax)\n\nThis project is under MIT license. You can obtain the license copy [here](https://github.com/ahydrax/Hangfire.Atoms/blob/master/LICENSE).\n\nThis work is based on the work of Sergey Odinokov, author of Hangfire. \u003chttp://hangfire.io/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahydrax%2Fhangfire.atoms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahydrax%2Fhangfire.atoms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahydrax%2Fhangfire.atoms/lists"}