tasks

When to dispose of System.Threading.Task with child tasks?

I have a task that launches several child tasks. (e.g., Task A creates B,C,D,E,F). I also create a System.Threading.Timer to poll a database every 10 seconds to check if the scheduled item was cancelled by request. If it does, it sets CancellationTokenSource so that the task knows to cancel. Each sub-task, in this case B,C,D,E,F, wil...

any special reference needed for c# 4.0 Parallel.For ?

I am following this article: http://blogs.msdn.com/b/csharpfaq/archive/2010/06/01/parallel-programming-in-net-framework-4-getting-started.aspx and in my console app Parallel namespace is visible, but "Parallel.For" fails compilation with "type of namespace For does not exist in namespace 'Parallel'". I've scoured the net, but not seei...

Tasks queue process in python

Task is: I have task queue stored in db. It grows. I need to solve tasks by python script then i have resources for it. I see two ways: python script working all the time. But i don't like it (reason posible memory leak). puthon script called by cron and do a little part of task. But i need to solve problem of one working active sript ...

How can I setup a system to tell me if a cron job is NOT running fine?

Hi, This is more of an "general architecture" problem. If you have a cron job (or even a Windows scheduled task) running periodically, its somewhat simple to have it send you an email / text message that all is well, but how do I get informed when everything is NOT okay? Basically, if the job doesn't run at its scheduled time or Windows...

Task Chaining with Cursor issue on app engine. Exception: Too big query offset. Anyone else get this issue?

Hi, I'm not sure if anyone else has this problem, but I'm getting an exception "Too big query offset" when using a cursor for chaining tasks on appengine development server (not sure if it happens on live). The error occurs when requesting a cursor after 4000+ records have been processed in a single query. I wasn't aware that offsets ...

I would like to know how I can add attributes to the activity entity.

I would like to know how I can add attributes to the activity entity. Currently the default activities are Email, Task, Letter, Fax, Phone call, Appointment, Campaign, Service I would like to add more to the pick-list. I have already tried going into customizing entities > Activities > Attributes > Activity type code. Once I get to the l...

Should you include non-development tasks in your Scrum backlog?

We're having trouble incorporating certain types of tasks into our product and sprint backlogs: Meetings with clients Training and knowledge-sharing Administrative tasks Some of these aren't directly related to the project, so it's easy to put them aside and refer to them as administrative overhead (thereby reducing the doable story ...

Which exception App Engine raises when a task nears the 30 second limit?

From Task Queue Python API Overview: If your task's execution nears the 30 second limit, App Engine will raise an exception which you may catch and then quickly save your work or log process. Which exception is that? ...

TPL vs. InvokeRequired/Invoke

Since .NET 4.0 there is the TPL to execute asynchronous tasks. If you are reading the msdn, all async operations interacting with forms / UI still uses the InvokeRequire ... Invoke() pattern. What I'm asking is that is there a reason for it? From what I learned, TPL should be sort of a replacement of older threading mechanisms. So what's...

Ant standard tasks

Maven has a fairly standardized project structure and standard plugins for compilation and testing. Is there something widespread for Ant? I found the following projects so far: Antiplate Ant Script Library But I'm not sure whether these are widespread and are likely to be maintained in the future. Does someone have experience with ...

C# 4.0 Tasks - Subclassing or Displaying Execution Tree?

Hi there, do you have any advice on how i might visualise a Task Tree? I will be running a large set of long running tasks which each have some child tasks, i want to visualise the running of the execution to the user ideally in a tree / DAG. If possible i would like to use the new Task Parallel Library My first thought is to subclas...

How do I implement a rate throttled TaskScheduler

I would like to limit the rate at which System.Threading.Tasks are run, so that only a set number of tasks are completed per second. I imagine I would need to Implement a TaskScheduler to do so but i am not sure how. Can any one give me an idea as to how to go about this. ...

Can I tell Mylyn's context to be inclusive by default?

When I create a new task in Mylyn and activate it, all the resources in the package explorer become excluded by default from the new context and I have to manually select one by one all the resources I want to be included. Is there any way to tell Mylyn to be inclusive by default and exclude by hand what I don't want? Thanks in advance. ...

Are you using Parallel Extensions?

I hope this is not a misuse of stackoverflow; recently I've seen some great questions here on Parallel Extensions, and it got my interest piqued. My question: Are you using Parallel Extensions, and if so, how? My name is Stephen Toub and I'm on the Parallel Computing Platform team at Microsoft. We're the group responsible for Parallel...

How do I share data between custom Ant tasks?

I wrote two different custom Ant tasks. They are trying to share data through a static member in a base class. This is not working for me. I assume I am using static members correctly within Java. I think this is a dynamic loading issue with the Java VM. However, I am a relative newbie with Java. Since Ant custom tasks are mapped a...