AWS Thinkbox Discussion Forums

modifying values directly in the mongodb

When i’m tweaking field values in the mongodb, nothing seems to see my changes. How do i trigger an update?

For example:

>>> a = db.Jobs.update( {"_id": "5265c032f8f913025461a9a1"}, {"$set": {"Props.Pri":75}} )
>>> a = db.Jobs.find( {"_id": "5265c032f8f913025461a9a1"} )
>>> b = a.next()
>>> b['Props']['Pri']
75

But in the monitor, it still shows 50

Seems like restarting the monitor fixes the display issue. Would the slaves pick up on the changes though?

For the Monitor to pick up on it, you would have to modify the LastWriteTime value with the database’s current date/time. The Monitor uses this value to ensure it only pulls over new data.

The Slave, on the other hand, will always pull over all the information.

Cheers,

  • Ryan

Is this a database global? If yes, in theory, i should see the changes after a while? (say, a job gets sent, a frame finishes etc, i imagine they would all update the last write time?)

LastWriteTime is a job field.

Yeah found it thanks. Now i just need to format it properly

Works gloriously

Privacy | Site terms | Cookie preferences