Compare commits
8 Commits
3.0.0-Alpha
...
3.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e54a30a70 | |||
| 690e97e0e5 | |||
| 59e2bcf293 | |||
| 15bfa38032 | |||
| 62ec953b07 | |||
| c8cad4c8b2 | |||
| 64f4927e1b | |||
| b0c3b5e2ed |
+1
-1
@@ -1,7 +1,7 @@
|
||||
language: csharp
|
||||
solution: Hangfire.Raven.sln
|
||||
mono: none
|
||||
dotnet: 1.0.1
|
||||
dotnet: 2.0.0
|
||||
dist: trusty
|
||||
sudo: required
|
||||
script:
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
# Hangfire RavenDB
|
||||
|
||||
[](https://travis-ci.org/RefreshingIO/hangfire-ravendb)
|
||||
## Build Status
|
||||
|
||||
`Platform` | `Master`
|
||||
--- | ---
|
||||
**Windows** | [](https://ci.appveyor.com/project/CadyIO/hangfire-ravendb)
|
||||
**Linux / OS X** | [](https://travis-ci.org/CadyIO/hangfire-ravendb)
|
||||
|
||||
## Overview
|
||||
|
||||
RavenDB job storage for Hangfire
|
||||
|
||||
Usage
|
||||
--------
|
||||
## Usage
|
||||
|
||||
This is how you connect to a ravendb server (local or remote)
|
||||
```csharp
|
||||
@@ -40,7 +46,7 @@ Recurring jobs were never been simpler, just call the following method to perfor
|
||||
RecurringJob.AddOrUpdate(() => Console.WriteLine("Transparent!"), Cron.Daily);
|
||||
```
|
||||
|
||||
**Continuations**
|
||||
## Continuations
|
||||
|
||||
Continuations allow you to define complex workflows by chaining multiple background jobs together.
|
||||
|
||||
@@ -49,8 +55,7 @@ var id = BackgroundJob.Enqueue(() => Console.WriteLine("Hello, "));
|
||||
BackgroundJob.ContinueWith(id, () => Console.WriteLine("world!"));
|
||||
```
|
||||
|
||||
License
|
||||
--------
|
||||
## License
|
||||
|
||||
Copyright © 2013-2014 Sergey Odinokov.
|
||||
|
||||
@@ -67,7 +72,6 @@ GNU Lesser General Public License for more details.
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with this program. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses).
|
||||
|
||||
Known Bugs
|
||||
----------
|
||||
## Known Bugs
|
||||
|
||||
Hangfire.Tests requires RavenDB.Client which requires .Net 4.5. Until RavenDB 4.0 is released, Hangfire.Tests cannot be included and run.
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
version: 1.0.{build}
|
||||
|
||||
# branches to build
|
||||
branches:
|
||||
# whitelist
|
||||
only:
|
||||
- master
|
||||
- production
|
||||
|
||||
# blacklist
|
||||
except:
|
||||
- gh-pages
|
||||
|
||||
# build configuration
|
||||
configuration:
|
||||
- Debug
|
||||
- Release
|
||||
|
||||
# build platform
|
||||
platform: Any CPU
|
||||
|
||||
# environment variables
|
||||
environment:
|
||||
# Don't report back to the mothership
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
|
||||
# scripts to run before build
|
||||
before_build:
|
||||
- cmd: appveyor-retry dotnet restore -v Minimal
|
||||
|
||||
# run dotnet cli instead of msbuild
|
||||
build_script:
|
||||
- dotnet build
|
||||
+10
-10
@@ -1,10 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||
<Version>3.0.0</Version>
|
||||
<AssemblyVersion>3.0.0.0</AssemblyVersion>
|
||||
<FileVersion>3.0.0.0</FileVersion>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<Version>3.1.0</Version>
|
||||
<AssemblyVersion>3.1.0.0</AssemblyVersion>
|
||||
<FileVersion>3.1.0.0</FileVersion>
|
||||
<Description>RavenDB job storage for Hangfire - AspNetCore Example</Description>
|
||||
<Authors>Refreshing Collective <contact@refreshing.io></Authors>
|
||||
<Company>Refreshing Collective LLC</Company>
|
||||
@@ -22,12 +22,12 @@
|
||||
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Hangfire.AspNetCore" Version="1.6.12" />
|
||||
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
|
||||
<PackageReference Include="Hangfire.AspNetCore" Version="1.6.16" />
|
||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" />
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
<Version>3.0.0</Version>
|
||||
<AssemblyVersion>3.0.0.0</AssemblyVersion>
|
||||
<FileVersion>3.0.0.0</FileVersion>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<Version>3.1.0</Version>
|
||||
<AssemblyVersion>3.1.0.0</AssemblyVersion>
|
||||
<FileVersion>3.1.0.0</FileVersion>
|
||||
<Description>RavenDB job storage for Hangfire - Console Example</Description>
|
||||
<Authors>Refreshing Collective <contact@refreshing.io></Authors>
|
||||
<Company>Refreshing Collective LLC</Company>
|
||||
@@ -38,8 +38,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Hangfire.Core" Version="1.6.12" />
|
||||
<PackageReference Include="RavenDB.Client" Version="3.5.4-patch-35196" />
|
||||
<PackageReference Include="Hangfire.Core" Version="1.6.16" />
|
||||
<PackageReference Include="RavenDB.Client" Version="3.5.5-patch-35220" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -1,10 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
<Version>3.0.0</Version>
|
||||
<AssemblyVersion>3.0.0.0</AssemblyVersion>
|
||||
<FileVersion>3.0.0.0</FileVersion>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<Version>3.1.0</Version>
|
||||
<AssemblyVersion>3.1.0.0</AssemblyVersion>
|
||||
<FileVersion>3.1.0.0</FileVersion>
|
||||
<Description>RavenDB job storage for Hangfire</Description>
|
||||
<Authors>Refreshing Collective <contact@refreshing.io></Authors>
|
||||
<Company>Refreshing Collective LLC</Company>
|
||||
@@ -24,8 +24,8 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Hangfire.Core" Version="1.6.12" />
|
||||
<PackageReference Include="RavenDB.Client" Version="3.5.4-patch-35196" />
|
||||
<PackageReference Include="Hangfire.Core" Version="1.6.16" />
|
||||
<PackageReference Include="RavenDB.Client" Version="3.5.5-patch-35220" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -62,6 +62,7 @@ namespace Hangfire.Raven.JobQueues
|
||||
foreach (var job in repository.Query<Hangfire_JobQueues.Mapping, Hangfire_JobQueues>()
|
||||
.Where(fetchCondition)
|
||||
.Where(job => job.Queue == queue)
|
||||
.Customize(x => x.WaitForNonStaleResultsAsOfNow())
|
||||
.OfType<JobQueue>())
|
||||
{
|
||||
job.FetchedAt = DateTime.UtcNow;
|
||||
|
||||
Reference in New Issue
Block a user