Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere scheduler increase generated TaskId

 
David J Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a WebSphere task scheduler set up and some other code that does various things involving scheduled tasks. To keep track of things I use the TaskId that is generated by WebSphere upon scheduling the task. This is all fine until I started messing around with the config. At some point the scheduler started creating task Ids that were lower than one's created in the past. This means my surrounding code gets confused by two of my 'tasks' referencing the same WebSphere task. Does anyone know how I can increase the WebSphere scheduler taskId generator value? At the moment I just have a horrible hack whereby I create and delete a load of tasks in order to increase the scheduler task id up to my last task id value. It's nasty but I can't see what else to do just now (I can't alter my tasks due to auditing).

Does anybody have any ideas?
 
Paul Clapham
Sheriff
Pie
Posts: 20955
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like your code is making the assumption that the task numbers will continue to increase forever. Apparently that isn't a correct assumption. So you should fix your code to not make that assumption.
 
David J Smith
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct, I am making that assumption however I need to in order to keep a handle on the Websphere task from my code. The problem is that websphere removes the tasks from the database once they are complete, does anyone know how to keep them in the table as complete, I guess it's not possible.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic