RavenDB 4.1 Client - Get all ongoing tasks

95 views
Skip to first unread message

Jordan Brown

unread,
Jul 13, 2018, 11:59:23 AM7/13/18
to RavenDB - 2nd generation document database
I'm running the 4.1 server / client nightly builds to learn how to manage ongoing tasks programmatically. The client API has GetOngoingTaskInfoOperation to retrieve details on a specific ongoing task, but I don't see an operation to retrieve all ongoing tasks. I would need this to retrieve a list of task ids.

Will the 4.1 client have this capability? Or perhaps I've overlooked this capability somewhere in the client source code?

Oren Eini (Ayende Rahien)

unread,
Jul 13, 2018, 12:28:38 PM7/13/18
to ravendb
An ongoing task is one of the following:Replication, RavenEtl, SqlEtl, Backup, Subscription

You can get the full list of the ongoing tasks for a database from the database record.
See: GetDatabaseRecordOperation


Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


On Fri, Jul 13, 2018 at 6:59 PM, Jordan Brown <jordan...@eventbooking.com> wrote:
I'm running the 4.1 server / client nightly builds to learn how to manage ongoing tasks programmatically. The client API has GetOngoingTaskInfoOperation to retrieve details on a specific ongoing task, but I don't see an operation to retrieve all ongoing tasks. I would need this to retrieve a list of task ids.

Will the 4.1 client have this capability? Or perhaps I've overlooked this capability somewhere in the client source code?

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jordan Brown

unread,
Jul 13, 2018, 2:07:37 PM7/13/18
to RavenDB - 2nd generation document database
Thanks Oren. Got it working with GetDatabaseRecordOperation.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.

Wallace Turner

unread,
Sep 3, 2019, 7:13:25 PM9/3/19
to RavenDB - 2nd generation document database
Just wanted to follow up that the usage is

DatabaseRecordWithEtag result = store.Maintenance.Server.Send(new GetDatabaseRecordOperation("TestDb"));

There is no mention of either GetDatabaseRecordOperation or DatabaseRecordWithEtag in the docs...

Untitled.png

Wallace Turner

unread,
Sep 3, 2019, 10:03:45 PM9/3/19
to RavenDB - 2nd generation document database
>You can get the full list of the ongoing tasks for a database from the database record.

where? `DatabaseRecordWithEtag ` does't doesnt appear to expose the tasks. In fact the studio does a separate call to 


the `tasks` endpoint does not appear to be available in the client API and/or it is undocumented?

Wallace Turner

unread,
Sep 3, 2019, 10:23:27 PM9/3/19
to RavenDB - 2nd generation document database
have found answer 

      
              var op = new GetOngoingTaskInfoOperation(replication.TaskId, OngoingTaskType.Replication);
                   var replicationTask = (OngoingTaskReplication)_databaseMaintenanceOperations.DocumentStore.Maintenance.Send(op);

however its not in the 'Client API' docs rather it is found here

Oren Eini (Ayende Rahien)

unread,
Sep 4, 2019, 4:55:52 AM9/4/19
to ravendb

Oren Eini (Ayende Rahien)

unread,
Sep 4, 2019, 4:56:17 AM9/4/19
to ravendb
Reply all
Reply to author
Forward
0 new messages